oops, I forgot to place the code snippet. my bad my bad. I’ll get it my devs to update the website, first thing in the morning. Thank You for pointing it out.
Hey Eric, the code snippet has been updated on the website: trackingacademy.com/blog/shopify/customer-pixel-ga4-page-view-gtm#creating-and-configuring-a-google-tag-manager-container
Ah, thank you for pointing it out, the error was because the dataLayerEvent, was called inside the newURL before it was initiated. The error has been fixed now. Thanks Agaian
Getting an error from Shopify using your provided code toward the bottom: 'dataLayerEvent' was used before it was declared, which is illegal for 'const' variables. Great videos ❤ super helpful.
Is it okay if I leave (in addition to the custom pixel you added inside shopify customer events) the GTM codes (head and body) inside theme.liquid ? In order to track something else besides ecommerce events
Using customer pixel, you don't need GTM Code in the head and body of shopify store. Adding code in shopify theme + customer pixel will track 2x event for pageviews (one from theme.liquid and one from customer pixel)
@@TrackingAcademy Ok understood. I've done a test where I've added GTM script inside customer pixel and I set up a tag inside GTM in order to track email clicks (rule is Just Links - Click URL - contains "mailto"), but it doesn't work. Have you done any of these tests on your end?
Customer Pixel Runs in a sandbox, therefore, it's possible that the mailto: is not being tracked, since the DOM manipulation is not possible. There might be some other workarounds, however I have not tested them Yet.
"Get 95% Accurate Tracking for Your Ecommerce Store in 7 Days:
tinyurl.com/24fxey46"
Hi. Do you have a shopify pixel code and video on how to create Microsoft ads purchase events
Hi. There has been no video tutorial added for Bing Ads Conversion tracking
thanks for this video! where is the sample code?
oops, I forgot to place the code snippet. my bad my bad. I’ll get it my devs to update the website, first thing in the morning. Thank You for pointing it out.
Hey Eric, the code snippet has been updated on the website: trackingacademy.com/blog/shopify/customer-pixel-ga4-page-view-gtm#creating-and-configuring-a-google-tag-manager-container
The code showing some error in the shopify.
Ah, thank you for pointing it out, the error was because the dataLayerEvent, was called inside the newURL before it was initiated. The error has been fixed now. Thanks Agaian
Getting an error from Shopify using your provided code toward the bottom: 'dataLayerEvent' was used before it was declared, which is illegal for 'const' variables.
Great videos ❤ super helpful.
Ah. Thank you for pointing it out. I'll check it shortly and confirm with my developer to fix the blog post.
Hi, the code snippets have been updated on the blogs, thanks again for bringing this to my attention. You are the best :3
hello,i would like to know if the GA4 debug view won't work in normal?
No, the Ga4 debug view does not work, cause the customer pixel is running in the sandbox
Is it okay if I leave (in addition to the custom pixel you added inside shopify customer events) the GTM codes (head and body) inside theme.liquid ?
In order to track something else besides ecommerce events
Using customer pixel, you don't need GTM Code in the head and body of shopify store. Adding code in shopify theme + customer pixel will track 2x event for pageviews (one from theme.liquid and one from customer pixel)
@@TrackingAcademy Ok understood. I've done a test where I've added GTM script inside customer pixel and I set up a tag inside GTM in order to track email clicks (rule is Just Links - Click URL - contains "mailto"), but it doesn't work.
Have you done any of these tests on your end?
Customer Pixel Runs in a sandbox, therefore, it's possible that the mailto: is not being tracked, since the DOM manipulation is not possible. There might be some other workarounds, however I have not tested them Yet.