If you’re spending hard-earned money on Google Ads and not seeing the results you deserve, it’s time to get serious about conversion tracking. In today’s digital landscape—where every click counts and ad dollars can vanish into thin air without proper measurement—accurate tracking isn’t optional.
This guide explains exactly how to install Google Ads purchase tracking on Shopify using two proven methods: the easy Google & YouTube app and a more hands-on manual setup with Google Tag Manager (GTM).
Understanding Google Ads Purchase Tracking
At its core, conversion tracking is about knowing which ad clicks lead to purchases. Here’s what happens when you set it up:
- Conversion Action: You tell Google what you want to track (in this case, a purchase).
- Tracking Tag: Google generates a snippet of code (the conversion tag) to install on your site.
- Data Transmission: When a customer completes a purchase, the tag sends data back to Google Ads—including revenue figures.
- Actionable Insights: You can then optimize your campaigns based on real performance data.
Simple as that—but if you mess it up, you’re essentially throwing money away.
Method 1: Using the Google & YouTube App (The Easiest Route)
For most Shopify merchants, the Google & YouTube app is the quickest way to set up conversion tracking without diving into code. This method automates much of the process, letting you focus on your campaigns instead of technical details.
Step-by-Step Instructions:
Install the App
Log into your Shopify admin, visit the Shopify App Store, and add the Google & YouTube app. This official channel streamlines syncing your products with Google Merchant Center and setting up conversion tracking automatically.
Connect Your Google Account
Follow the prompts to connect your Google account and, if required, your Google Merchant Center. If the account details match (use the same admin email), the app should auto-populate the necessary fields.
Complete the Setup Checklist
The app may require you to verify some details (like your phone number for identity verification) and configure basic product feed settings. Follow the in-app checklist—this step is crucial for ensuring that your tracking works seamlessly.
Verify Conversion Tracking
Once set up, verify that conversion tracking is active by checking your Google Ads account under Tools & Settings > Conversions. If your purchases are being tracked, you’re good to go.
Bottom Line: This method is straightforward and minimizes the risk of code errors. If you’re not technically inclined, stick with this option to avoid costly mistakes.
Method 2: Manual Setup Using Google Tag Manager (For the Tech-Savvy)
For those who demand more control over their tracking—or for merchants facing limitations with the app integration—the manual setup using GTM is the way to go. It might require a developer’s help, but the benefits are clear: flexibility, accuracy, and future-proof tracking.
Step-by-Step Instructions:
Create a Conversion Action in Google Ads
- Log into your Google Ads account.
- Navigate to Tools & Settings > Conversions and click “+ New conversion action.”
- Select “Website” as the conversion type and configure it (set it to capture purchase values, use dynamic variables, etc.).
Install the Global Site Tag via Shopify
- In Google Ads, choose the manual installation option to get your global site tag.
- From your Shopify admin, go to Online Store > Themes > Edit Code and open your
theme.liquid
file. - Paste the global site tag within the
<head>
section to load on every page.
Add the Purchase Event Snippet
Still in Google Ads, copy the event snippet (the piece of code that fires on purchase completion). Go to Settings > Checkout in Shopify and paste the snippet into the “Additional Scripts” field.
To prevent duplicate conversions (like if a customer refreshes the page), wrap your snippet with Shopify Liquid tags:
Replace static values (like currency or transaction IDs) with dynamic Shopify variables (e.g., {{ checkout.total_price | divided_by: 100.0 }}
).
Test and Troubleshoot
- Use Google’s Tag Assistant or GTM’s preview mode to ensure that your tags fire correctly during a test purchase.
- Verify that conversion data appears in Google Ads. If not, double-check your code for typos or misconfigurations.
Bottom Line: Manual setup gives you unparalleled control over tracking—vital if you’re running advanced campaigns or need server-side tracking as browsers evolve. But if you’re not comfortable with code, please try to using method 1.
Testing & Troubleshooting
No matter which method you choose, testing is non-negotiable. Follow these steps:
- Perform a Test Purchase: Run a test transaction on your store and verify that Google Ads registers the conversion.
- Use Debugging Tools: Google Tag Assistant and GTM’s Preview Mode are essential for diagnosing issues.
- Check for Duplicate Conversions: Ensure that your code prevents duplicate conversion entries, which can skew your data.
By following these clear, no-fluff instructions, you’ll not only install Google Ads purchase tracking on Shopify correctly but also set yourself up for long-term success in an ever-changing digital marketplace. For more detailed, step-by-step tutorials and insights on optimizing your ad spend, check out resources like the Madgicx guide, I hope this help!
Check out more premium Shopify Themes built and powered by ThimPress!