Setup Google Dynamic Remarketing Global Site Tags/Pixel (gtag.js) In Shopify
Recently once of Client ask me implement (gtag.js) on shopify to work Dynamic remarketing Tags/pixels for shopify using without plugin and put directly on Shopify theme!!
Due to recently updated google ads dynamic remarketing for Global Tags/Pixel (gtag.js) that’s need modify tracking with (gtag.js) for Shopify Google Ads Dynamic remarketing implementation. Shopify Dynamic remarketing pixel (gtag.js) below these parameters.
‘ecomm_prodid’: ‘REPLACE_WITH_STRING_VALUE‘,
‘ecomm_pagetype’: ‘REPLACE_WITH_STRING_VALUE‘,
‘ecomm_totalvalue’: ‘REPLACE_WITH_STRING_VALUE‘
‘ecomm_prodid’: For Product id that could be product id or Sku, it’s depend on product feed which one you have considered on product feed, if you have consider product id then, you need to pass it product id or considered sku then you need pass through sku on “ecomm_prodid”
‘ecomm_pagetype’: For that you need fire these pixe on Home Page , search results Page, Product Page, Cart Part, Checkout, on success page
‘ecomm_totalvalue’: You need show product value, Cart total value, Checkout total value, on Success Page total amount, and Home Page zero value.
For Work Dynamic Remarketing Tags (gtag.js) on Shopify: You need make changes in Google Analytic setup these parameters as custom dimentsion in Google Analytic to work Shopify Google Dynamic Remarketing Global Site Tags/Pixel (gtag.js)
1. First need to install Global Site Tag (gtag.js) on all the pages for work Dynamic remarketing tags on Shopify store
<!-- Global Site Tag (gtag.js) - Google AdWords: xxxxxxx -->
<script async src="https://www.googletagmanager.com/gtag/js?id=AW-xxxxxxx"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'AW-xxxxxx');
</script>
2. Need to place these code on describe product type page above in Shopify Remarketing Pixel
<!– Event snippet for Example dynamic remarketing Code for Shopify Store –>
<script>
gtag(‘event’, ‘page_view’, {‘send_to’: ‘AW-xxxxxxxx’,
‘ecomm_prodid’: ‘REPLACE_WITH_STRING_VALUE‘,
‘ecomm_pagetype’: ‘REPLACE_WITH_STRING_VALUE‘,
‘ecomm_totalvalue’: ‘REPLACE_WITH_STRING_VALUE‘
});
</script>
For Product Page:
For Cart Page –
Home Page –
3. It’s time to verify Google Ads Dynamic Remarketing Tags for Shopify with New Global Tags using Google Ad Conversion Remarketing pixel
Warning:if you do n’t know about javascript or don’t have developing knowledge then do n’t try to Install Dynamic Remarketing Global Site Tag (gtag.js) on Shopify javascript without using Any plugin that can broke your site, Cart and other functionality
Disclaimer: Google tag manager belongs to Google property
For Contact: mappchero@gmail.com
I am available for Hire on Freelancer: Freelancer.com
I am available for Hire on Upwork: Upwork.com
I am available for Hire on Peopleperhour: Peopleperhour.com
I am available for Hire on Guru: Guru.com
No Fields Found.