Analytics
1.6K members online now
1.6K members online now
Learn how to set up goals and Ecommerce tracking, verify accuracy of attribution traffic sources, and discuss funnel visualization, Multi-Channel Funnels, the Goal Flow Report, and Enhanced Ecommerce
 
Guide Me
star_border
Reply

Ecommerce Tracking Code not working properly

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

I'm trying to get ecommerce working for a second tracker on the same site. Both trackers work for default reports but the ecommerce isn't, the data is a flatline.

 

My code:

ga('create', UA-XXXXXXX-X, 'auto', {'allowLinker': true});
ga('require', 'linker');
ga('require', 'ec');
ga('linker:autoLink', googleDomainList);
ga('send', 'pageview');

ga('create', 'UA-XXXXXXX-X', 'auto', 'combinedTracker', {'allowLinker': true});
ga('combinedTracker.send', 'pageview');
ga('combinedTracker.require', 'ec');
ga('combinedTracker.require', 'linker');

The second tracker is through google tag manager and has enhance ecommerce turned on.

 

What have I done wrong?

1 Expert replyverified_user

Ecommerce Tracking Code not working properly

Rising Star
# 2
Rising Star

Derek,

 

Not enough info here to answer.  If the second tracker is through GTM (using the template) and you are using the dataLayer as specified you should not have an issue.

 

It looks like you are also using cross domain which can be problematic.   Check out these posts by Simo for more in depth help:

 

https://www.simoahava.com/gtm-tips/cross-domain-tracking-with-multiple-ga-trackers/

 

 

 

Best,

 

Theo Bennett

Analytics Evangelist at MoreVisibility | Contact Me
Connect on LinkedIn