Liquid, JavaScript, themes, sales channels
Hi all!
Shopify analytics is expected to track events for every single page of a store. And that is not happening!!
We're facing an issue since the last Friday, where using an alternate template (https://shopify.dev/themes/architecture/templates#render-an-alternate-template-in-a-published-theme) will make Shopify Analytics stop working.
eg.
#1 - This page doesn't track visits ---> https://www.plantr.co.za/products/apogee-planter-contemporary-desk-table-planter?view=quote
#2 - This page does track visits ---> https://www.plantr.co.za/products/apogee-planter-contemporary-desk-table-planter
Looking at the differences in the source code of the pages, we realize that the ?view= parameter is breaking the {{content_for_header}} rendering, which means the code for Shopify analytics and other native pixel codes are not working.
The following screenshot is from a regular page without the "?view" URL parameter...
The highlighted part on the screenshot is part of the code missing on the pages with the "?view" URL parameter.
Trekkie script is not present on the alternate page (the one with the ?view=quote parameter), which means no native pixel codes are being loaded (Google & Facebook), even the Shopify analytics is not registering visits to those pages.
I've checked several pages hosted on Shopify, and it seems all of them are facing the same issues!
Shopify support won't help us... their response was (and I'm quoting them):
"I'm afraid the complexity of the issue you have would fall outside the scope of our technical support we are able to provide"
we use the alternate templates as landing pages for our Facebook ads... and this is a big issue that is preventing us to properly track visits and conversions coming from the ads.
Does anyone have any thoughts about this?
One week later, the problem was suddenly resolved, and Shopify support keeps asking me to explain what is the issue.
User | RANK |
---|---|
32 | |
27 | |
20 | |
7 | |
7 |
We're excited to announce improvements to the threaded messaging experience in our communi...
By TyW May 31, 2023Thank you to everyone who participated in our AMA with Klaviyo. It was great to see so man...
By Jacqui May 30, 2023Photo by Marco Verch Sales channels on Shopify are various platforms where you can sell...
By Ollie May 25, 2023