• Hi Thomas,

    Awesome job with the plugin! πŸ™‚

    I do have a query. I am trying to create variables in GTM to fetch data created in the DataLayer (for a third party tool). I am using woocommerce and have enhanced e-commerce activated.

    However, numeric data variables like price, cart total are being stored as strings in the DataLayer. Can you help me with this?

    Website – http://www.greencurewellness.com

    • This topic was modified 6 years, 8 months ago by greencure.
Viewing 1 replies (of 1 total)
  • Plugin Author Thomas Geiger

    (@duracelltomi)

    Hi,

    Since JavaScript is loosely typed, numbers stored as strings usually can be used to populate 3rd party tags. I’ve added some code into the dev version that will enfore int and float types but according to my experiences, it works if the number is stored as a string as well.

Viewing 1 replies (of 1 total)

The topic ‘Wrong Data Format in DataLayer’ is closed to new replies.