homepage Welcome to WebmasterWorld Guest from 54.163.72.86
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / WebmasterWorld / Website Analytics - Tracking and Logging
Forum Library, Charter, Moderators: Receptional & mademetop

Website Analytics - Tracking and Logging Forum

    
Ecommerce Tracking w Google Tag Manager
Ecommerce Implementation for Tag Manager not working
mirabile




msg:4630055
 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: https://support.google.com/tagmanager/answer/3002596?hl=en

<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]

 

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / WebmasterWorld / Website Analytics - Tracking and Logging
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved