Google Tag Manager Checkout & Purchase Page Not Working (Ride Theme)

Hi there,

I am having issues with getting Google Tag Manager (GTM) to work on my Checkout and Purchase pages. GTM is working everywhere else but as soon as I get to checkout it stops working. I have tried numerous steps to try and get this working.

I tried using adding event tracking code to the “Customer Events” section under “Settings” but all that happens is the my GTM tracking code on my website doubles and I still cannot see the checkout page appearing.

I then tried to remove the GTM tracking code from my Theme Liquid but then when I tried to test my tracking on the GTM debug view it would say that GTM had not been implemented on my website so I had to keep the code implemented in my theme liquid otherwise GTM would not work.

Can someone please help and assist me with implementing the tracking for my checkout page so I can track purchases?

Cheers,

Scott

Hello, @infinitysleep , it looks like you have to subscribe to the correct checkout event you want to track, not just paste the tracking code in customer events (which is the correct place to add tracking code to the new checkout extensibility). Please refer to the official Shopify dev documentation on custom pixels API, which lists all the events you can subscribe to, as well as all the data that is available for you to track, depending on the event you subscribe to.

Hope it helps! All the best.

I am also having an issue with Google Tag Manager where it loses connection after the first page in Debug mode. I have GTM installed in my theme and my Tag Legacy chrome extension mentions that GTM is installed on my pages but it keeps losing connection. How do I fix this? Consent mode is working fine as well. Please see screenshot.

Hi infinitysleep,

THanks for your query.

it is not possible to connect GTM with the checkout page because checkout page is not connected to theme file.

but you can still connect thank you page with The GTM by using checkout additional script. Though additional script is deprecated still you can revert it and use it to connect the purchase page with GTM temporarily.

Another way to connect GTM with Shopify thank-you page is by using a custom pixel in the customer event.

In that case, you can not preview from the tag assistant but from the console.

And to track the purchase you must have an custom datalayer from where GTM will pick the value using datalayer variable.

Feel free to ask if you have any questions.

or

If you want to discuss more dont hesitate to send me a PM.

Thanks

Hello,

did you solve the problem?
I have 100% the same issue.

BR
Fab

Hi curry,

Could you please share your website URL?

using the right Datalayer in custom pixel you can connect checkout page and thank you page with the GTM preview. and test if the tag is firing or not.

Thanks

Hello, we are running into the same issue. The integrated Google analytics through the Google&Youtube sales channel is working just fine. However we are running an additional Google Analytics Tag through the Customer Events and Custom Pixel which is not collecting the information. I can paste our code here if needed.