CVM / Magento_GoogleTagManager

Google Tag Manager extension for Magento
67 stars 55 forks source link

Datalayer incomplete upon Success in Chrome #24

Open joshua-chavanne opened 9 years ago

joshua-chavanne commented 9 years ago

I have no idea why the dataLayer would render differently based on browser, but in Chrome on Transaction Success the dataLayer is not fully populated. This issue does not exist in Firefox or Safari. I can reproduce this issue consistently.

This is a Success Page in Firefox:

<script>dataLayer = [{"transactionId":"100000102","transactionDate":"2014-11-13","transactionTotal":299,"transactionShipping":0,"transactionTax":0,"transactionPaymentType":"Check \/ Money order","transactionCurrency":"USD","transactionShippingMethod":"usps","transactionProducts":[{"name":"Smart System - Graphite","sku":"SY1GR","category":"Soundhawk Smart Listening System","price":299,"quantity":1}],"visitorId":"21","visitorLoginState":"Logged in","visitorType":"General","visitorLifetimeValue":11380.97,"visitorExistingCustomer":"Yes"}];</script> This is a Success Page in Chrome:

<script>dataLayer = [{"visitorId":"21","visitorLoginState":"Logged in","visitorType":"General","visitorLifetimeValue":10782.97,"visitorExistingCustomer":"Yes"}];</script>