Download
Google Ads Advanced Tracking For Shopify (Membership Required: Merchants or Agency)Tutorial is available at: https://feedarmy.com/kb/adding-google-adwords-remarketing-tag-to-shopify/
Includes lifetime updates for Version 1 — no subscriptions, no surprises. You’ll get every future fix or improvement as long as Shopify and Google keep the same tracking structure.
Changelog
Version 1.05 – 7 th April 2025
New Features:
- Automatic Cookie Consent Handling (with Fallback) The script now respects Shopify’s customer privacy API. If a consent app is installed, it will only run tracking after marketing consent is given If no cookie banner or consent app is present, the script automatically runs, ensuring tracking still works out of the box.
- If no cookie banner or consent app is present, the script automatically runs, ensuring tracking still works out of the box.
Improvements:
- Universal Compatibility Works seamlessly with or without cookie consent apps — no extra setup needed.
- Console Warnings Helpful messages added to the browser console when the privacy API is not detected or consent is denied — makes troubleshooting easier for store owners.
Compliance Ready (but Flexible) For stores in regions like the EU/UK/CA, tracking respects privacy laws by default. For others, no setup changes are needed — just paste and go.
Version 1.04 – 6th April 2025
New Features:
begin_checkoutevent added
Tracks when a user starts the checkout process, improving funnel visibility and audience targeting.remove_from_cartevent added
Helps build audiences based on cart abandonment behavior.customer_loginandcustomer_account_createdevents added
Enables retargeting or exclusion of logged-in users and new customer sign-ups for more refined remarketing lists.
Improvements:
- Deduplication logic for
purchaseevents
Prevents duplicate conversions being sent to Google Ads during multi-trigger scenarios. - Null/undefined safety added to all event handlers
Prevents errors when product or variant data is missing—ensures reliable performance even with unusual product setups (e.g. bundles, custom apps). - Standardized product ID generation
All event handlers now use a centralizedgetItemId()function for consistent and clean tracking across all product ID formats (shopify,sku,variant_id,parent_id). - Inline logic for
begin_checkoutevent
No longer depends on shared utility functions, keeping things fast and lightweight. - Conversion callback (
event_callback) added topurchase
Ensures Google Ads recognizes the conversion even during quick page transitions or redirects.
Refactoring:
- Cleaner code structure and reduced duplication.
- All item processing logic now uses
Array.map().filter()for safe and accurate payload creation.
Leave a Reply