homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Gold Sponsor 2015!
Home / Forums Index / WebmasterWorld / Website Analytics - Tracking and Logging
Forum Library, Charter, Moderators: DixonJones & mademetop

Website Analytics - Tracking and Logging Forum

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

Msg#: 4630053 posted 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

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

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

new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
<!-- 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
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