Product
GDPR-Ready Shopify GA4 & Google Ads Setup
A ready-to-use tracking setup for Shopify: capture the entire customer journey — from the first visit to checkout — in GA4 and Google Ads. Full control over your data, no app dependencies, and no development effort.
- Shopify Custom Pixel
- GTM Web Container
- GA4 & Google Ads
- GDPR-Friendly
Overview
What This Template Does
It's made up of two simple parts that work together:
- Shopify Custom Pixel
- Captures every event in your shop without gaps — from product views to cart actions to checkout — and prepares the data safely inside an isolated sandbox. Personal data such as email address or phone number can optionally be anonymized automatically before it's transmitted (SHA-256 hashing).
- GTM Container
- Receives the prepared pixel data and controls the handoff to GA4 and Google Ads. Through its strict link to Shopify's Privacy API, tags only fire once the visitor has actually given the relevant consent.
You get both parts ready to set up yourself: the pixel file for Shopify and the container file for Google Tag Manager.
Benefits
Key Benefits
Tracks Your Whole Shop
From page views, to product views, to a completed purchase — every important step is captured automatically.
Respects Visitor Consent
Nothing is tracked until a visitor agrees. As soon as they do, tracking is activated and data collection begins.
Ready for Google Ads
Conversion tracking and remarketing are included from day one, so you can measure ad performance and reach past visitors again.
Keeps Customer Data Private
Personal data like emails or phone numbers can be hashed right on the customer's device — if you want it to be.
Yours to Adjust
No locked-down app and no hidden logic — every part of the code is easy to read and can be changed later if your shop's needs grow.
How it works
How It Works
Import the GTM Container
In Tag Manager, import the container file, choose a workspace, and merge or overwrite.
Add Your Own IDs
Enter your GA4 Measurement ID, Google Ads Account ID, and Conversion Label.
Add the Pixel to Shopify
Paste the pixel into Customer Events, fill in your own details, and switch it on.
Check Consent Is Set Up
Make sure Shopify's privacy settings (or your consent tool) are switched on — the pixel reads consent directly from there.
Test Before You Publish
Use a test order to confirm everything works correctly, then publish.
Setup
What You Need
- A Shopify store where you can add Custom Pixels
- A Google Tag Manager account
- A GA4 property
- Optional: A Google Ads account, if you want conversion tracking
FAQ
Frequently Asked Questions
What exactly do I get when I buy this template?
You get the pixel file to paste into Shopify, the GTM container file to import, and a step-by-step PDF guide.
Do I need to install a separate tracking app?
No. This template is a complete setup made up of two files you set up once and then own — no ongoing monthly fee.
What does it track?
Every important shop event: page views, product views, cart actions, every checkout step, purchases, and on-site search.
How does the consent part work?
The pixel checks your visitor's consent choice directly in Shopify via the Shopify Analytics API. Tracking only turns on once a visitor has actually agreed — by default, nothing runs before that.
Does it work with Google Ads?
Yes. A conversion tag and a remarketing tag are included and ready to use. There's also an extra tag for improved ad matching using hashed customer data — it stays switched off until you decide to turn it on.
Can I use this for other tools besides GA4 and Google Ads?
Yes. The pixel and GTM container follow a standard setup, so you can add tags for other platforms — like Meta, TikTok, or Pinterest — the same way. This template ships with GA4 and Google Ads only, but the underlying data is available to route anywhere you need.
Is this template completely GDPR-compliant out of the box?
No template can guarantee full legal compliance on its own — that always depends on your privacy policy, your consent tool, and your specific business. What this template does provide: tracking stays off until a visitor consents, and personal data is anonymized before it's sent anywhere. Still, check your final setup with your data protection officer before going live.
Do I need to know how to code?
No. You paste the pixel into Shopify, import the container into GTM, and fill in your own IDs using the setup guide. If you ever want to change something later, the code stays simple and readable.
Where do I get the template?
On Gumroad. After buying, you'll receive the pixel file, the GTM container, and the PDF setup guide.
GDPR-Ready Tracking Setup for Shopify.
Get the GDPR-ready setup made of Custom Pixel and GTM Container for GA4 & Google Ads.
Buy it on Gumroad →