How to track GTM on the post-purchase page
Overview
Integrating Google Tag Manager (GTM) into your Shopify store's post-purchase page enables effective tracking of customer interactions, providing valuable insights into post-purchase behavior and the performance of upsell offers.
Step-by-Step Guide
Access Shopify Admin Settings
Log in to your Shopify Admin panel.
Navigate to Settings > Checkout.
Locate Post-Purchase Page Settings
Within the Checkout settings, scroll to the Post-purchase page section.
Add GTM Tracking Code
Find the Additional Scripts field in the post-purchase page settings.
Paste your GTM container snippet into this field.
Click Save to apply the changes.
This process embeds your GTM tracking code into the post-purchase page, enabling you to track events and conversions effectively.

Additional Resources
Post-Purchase Scripts in Shopify – Tag Manager Integration
Conversion Tracking on Shopify Upsell Page with Server GTM
Updated on: 20/03/2025
Thank you!