Title: Variable does not show value
Last modified: September 24, 2021

---

# Variable does not show value

 *  [mm2021mm](https://wordpress.org/support/users/mm2021mm/)
 * (@mm2021mm)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/variable-does-not-show-value/)
 * Hello.
    I have your plugin enabled and so I get on the thank you page your event
   gtm4wp.orderCompletedEEC. I get values in data layer, like revenue, order ID 
   etc. and I have variables, that should read that values (like ecommerce.purchase.
   actionField.revenue.). However somehow GTM in debug mode does not show any values,
   when the event fires. I get return type and value = undefined. Also Fb pixel 
   helper does not show those same values. However on the next event named “purchase”,
   which I don’t quite understand if this is Woocommerce data layer push or your
   plugin? There my other variables show the right values, like revenue, order id,
   etc. Can I please ask for a help with that? Thanks!
    -  This topic was modified 4 years, 8 months ago by [mm2021mm](https://wordpress.org/support/users/mm2021mm/).
    -  This topic was modified 4 years, 8 months ago by [mm2021mm](https://wordpress.org/support/users/mm2021mm/).

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Thomas Geiger](https://wordpress.org/support/users/duracelltomi/)
 * (@duracelltomi)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/variable-does-not-show-value/#post-14905526)
 * Hi,
 * `gtm4wp.orderCompletedEEC` includes a data layer structure that is primary designed
   for Universal Analytics (aka Google Analytics 3) where `purchase` includes a 
   different structure designed for Google Analytics 4 and the update dynamic remarketing
   tag for Google Ads.
 * Both include almost the same things but in a different format.
 * At this point, all I can help is this, if you can provide some screenshots of
   your tags and trigger setting, I can have a look at them.
 *  Thread Starter [mm2021mm](https://wordpress.org/support/users/mm2021mm/)
 * (@mm2021mm)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/variable-does-not-show-value/#post-14905580)
 * Thank you Mr. Thomas for your quick response.
 * I have uploaded two screenshots here:
    [https://ibb.co/gR22jnf](https://ibb.co/gR22jnf)
   [https://ibb.co/xHHyGSZ](https://ibb.co/xHHyGSZ) They show my dlv settings and
   GTM debug show “undefined” value.
 * The main issue stay:
    My Dlv with a name: ecommerce.purchase.actionField.revenue.
   does not show any value when the event gtm4wp.orderCompletedEEC is triggered.
 * So any ideas why my variable show undefined value in GTM debug and also in Facebook
   pixel helper.
 * Many thanks!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Variable does not show value’ is closed to new replies.

 * ![](https://ps.w.org/duracelltomi-google-tag-manager/assets/icon-256x256.png?
   rev=1708451)
 * [GTM4WP - A Google Tag Manager (GTM) plugin for WordPress](https://wordpress.org/plugins/duracelltomi-google-tag-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/duracelltomi-google-tag-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/duracelltomi-google-tag-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/duracelltomi-google-tag-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/duracelltomi-google-tag-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/duracelltomi-google-tag-manager/reviews/)

## Tags

 * [variables](https://wordpress.org/support/topic-tag/variables/)

 * 2 replies
 * 2 participants
 * Last reply from: [mm2021mm](https://wordpress.org/support/users/mm2021mm/)
 * Last activity: [4 years, 8 months ago](https://wordpress.org/support/topic/variable-does-not-show-value/#post-14905580)
 * Status: not resolved