title: Google Tag Manager Data Layer Variable undefined - Woocommerce
body: <p>I am having trouble with an undefined data layer variable with Google Tag Manager named <code>ecomm_totalvalue</code> (Please note I have also tried <code>object.ecomm_totalvalue</code>)</p>
  
  <p>I am using WordPress/WooCommerce and GTM with <a href="https://wordpress.org/plugins/duracelltomi-google-tag-manager/" rel="nofollow noreferrer">duracelltomi-google-tag-manager</a> to create and access the data layer.</p>
  
  <p>The data layer works correctly and using the GTM inspector/preview I can view all the DLVariables (See image 1), however, they come up as undefined when I make data layer variables in Google Tag Manager and try to log them to the console with a GTM tag.</p>
  
  <p>I am not sure what I am doing wrong here as the variables exist, I assume I am not calling them correctly!</p>
  
  <p>Any help would be appreciated, please view images for more information.</p>
  
  <p>Thank you!</p>
  
  <h2>Image 1 - GTM Preview</h2>
  
  <p><a href="https://i.stack.imgur.com/Ea3YG.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Ea3YG.png" alt="enter image description here"></a></p>
  
  <h2>Image 2 - Data Layer Variable</h2>
  
  <p><a href="https://i.stack.imgur.com/b0p9W.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/b0p9W.png" alt="enter image description here"></a></p>
  
  <h2>Image 3 - Tag</h2>
  
  <p><a href="https://i.stack.imgur.com/z8bfe.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/z8bfe.png" alt="enter image description here"></a></p>
  
  <hr>
  
  <p><code>
  (6) [Arguments(2), Arguments(2), {…}, {…}, {…}, {…}, object_observed: true, push: ƒ]
  0: Arguments(2) ["js", Sun Sep 23 2018 17:54:21 GMT-0700 (Pacific Daylight Time), callee: ƒ, Symbol(Symbol.iterator): ƒ]
  1: Arguments(2) ["config", "UA-01234567-1", callee: ƒ, Symbol(Symbol.iterator): ƒ]
  2:
  customerBillingAddress1: ""
  customerBillingAddress2: ""
  customerBillingCity: ""
  customerBillingCompany: ""
  customerBillingCountry: ""
  customerBillingEmail: ""
  customerBillingFirstName: ""
  customerBillingLastName: ""
  customerBillingPhone: ""
  customerBillingPostcode: ""
  customerFirstName: ""
  customerLastName: ""
  customerShippingAddress1: ""
  customerShippingAddress2: ""
  customerShippingCity: ""
  customerShippingCompany: ""
  customerShippingCountry: ""
  customerShippingFirstName: ""
  customerShippingLastName: ""
  customerShippingPostcode: ""
  customerTotalOrderValue: "0.00"
  customerTotalOrders: 0
  ecomm_pagetype: "other"
  pagePostAuthor: "user"
  pagePostType: "page"
  pagePostType2: "single-page"
  __proto__: Object
  </code></p>