Welcome to WebmasterWorld Guest from 54.205.75.60

Forum Moderators: DixonJones & mademetop

Message Too Old, No Replies

Ecommerce Tracking w Google Tag Manager

Ecommerce Implementation for Tag Manager not working

   
2:48 pm on Dec 12, 2013 (gmt 0)



We can't get ecommerce tracking to work using tag manager.

1. The onpage code we're using follows what Google advises here: [support.google.com...]

<script>
dataLayer = [{
'transactionId': '692134',
'transactionAffiliation': 'ZZZZZZ',
'transactionTotal': 73.37,
'transactionTax': 6.37,
'transactionShipping': 12.0,
'transactionProducts': [
{
'sku': '17623',
'name': 'ZZZZZZ',
'category': 'ZZZZZZ',
'price': 55.0,

'quantity': 1
},
]
}];
</script>

<!-- Google Tag Manager -->
<noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-XXXXX"
height="0" width="0" style="display:none;

visibility:hidden"></iframe></noscript>
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-XXXXXX');</script>
<!-- End Google Tag Manager -->


********
2. We created a Transaction tag with the following info

Name: Client Name
Type: Google Analytics
ID: Correct ID is associated
Track Type: Transaction
Firing Rules: Conversion Page

3. We associated a Firing Rule

Rule Name: Conversion Page
Conditions:
If URL Contains Thank

(Yes, all confirmation URLs contain "thank".)

4. We published the version.

******
I'd appreciate any advice or feedback! If we can't get this to work using Google's guidelines we're considering scrapping this entirely and using these suggestions instead where you create an event TrackTrans and associate the rule with the event...

[edited by: mademetop at 4:25 am (utc) on Dec 13, 2013]
[edit reason] No links please per TOCs [/edit]