Analytics
5K members online now
5K members online now
Dive into multiple domain (Cross/Sub) tracking, implementing Ecommerce and Enhanced Ecommerce, setting up Event tracking, and Universal Analytics code.
 
Guide Me
star_border
Reply

How To Place JS coding in success page of Magento for Google Tag manager?

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

How To Place JS coding in success page of Website (built with Magento) for Google Tag manager & Connect GTM to Magento as I want to track conversion/purchases on my Website (built with magento)

1 Expert replyverified_user

How To Place JS coding in success page of Magento for Google Tag manager?

Rising Star
# 2
Rising Star

Hey Arnav,

 

You should be able to do this without issue and there are several posts on this online.

 

If you are concerned because the new placement recommendations, you may not be able to place it exactly as specified by splitting the code for the header and body, but you can still place the whole thing at the start of the body or use a Magento module to accomplish same.  Just make sure any dataLayer creation happens before the code or fire a GTM event when your ecom dataLayer is created layer then use this as the firing trigger.

 

Good luck!

 

Best,

 

Theo Bennett

 

 

Analytics Evangelist at MoreVisibility | Contact Me
Connect on LinkedIn