Skip to content

joeprisk/shopify-tagmanager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Tag manager e-commerce datalayer

I've put this here in the hope it may save someone half an hour of googling.

To use e-commerce tracking make sure to include analytics through the shopify cms (Online store -> preferences -> analytics ) and uncheck advanced e-commerce as this will double record the sales. Then continue below.

Standard shopify gives you full control of your theme files until it gets to the payment gateway and the checkout process. You can however inject code from within the admin, and get access to the full checkout object supplied in the liquid template.

shopify checkout docs

Navigate to shopify admin -> Settings -> Checkout

Scroll to 'Additional scripts' at the end of 'Order processing' section and paste the contents of tag manager include

Disclaimer: This adds tag manager in the 'wrong' place, if you are using ta assistant to check it will compain, and trying to more than fir this event, you may run into issues, but for this purpose this doesn't seem to pose an issue.

About

Shopify checkout tag manager snippet

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages