poff
poff

Reputation: 25

Switch to Tag Manager, will Enhanced Ecommerce still work?

I've successfully implemented Google Enhanced Ecommerce on one of my websites, where I also have a Google Universal Analytics tracking code. Now we want to change to Google Tag Manager, thus replacing the UA tracking code with the Tag Manager Code (correct?)

Will this affect the Enhanced Ecommerce tracking in any way? Or can I just replace the tracking snippet and the ga('create')-parts with the Tag Manager-snippet?

Upvotes: 0

Views: 113

Answers (1)

Eike Pierstorff
Eike Pierstorff

Reputation: 32760

You need a correctly set up dataLayer (which rather more complicated since you need info on product impressions etc). Documentation is here:

https://developers.google.com/tag-manager/enhanced-ecommerce#enable

Then you create a news Analytics Tag (just a pageview or event, there is no need for a separate transaction tag) and select "Enhanced Ecommerce" with the "Use datalayer" option in the advanced settings.

GTM will pick up the values from there datalayer and do the rest for you.

So yes, you can get this to work, but it requires a lot of preparation for the correct datalayer implementation. Simply replacing the GA code with the GTM code will do very little except breaking your tracking.

Upvotes: 1

Related Questions