Whenever we add something to our theme.liquid file, we are able to do it successfully.
But when we look at the live preview of the site, the code is not there.
As a result, we are not able to put any new tracking codes etc. on the site.
Here’s a sample of a tracking code that we put on theme. liquid file but it doesn’t show on live preview
Shopify cache pages so depending on which files you change it can take a little bit of time before it shows. Give a few minutes - or an hour and then it should be there
That’s an interesting one. I can’t be sure from what I see via the browser but I will make a bold guess from experience that you could be using an app like zipify pages. it can actually skip the code in the theme.liquid and rewrite it with it’s own. It usually pulls the content from a snippet file with “index” (sorry, can’t remember the exact file name anymore) in it.
If you are using the app I would give the app devs a shout and see what support they offer.
Well, “quickly” is a relative term
I often find it’s renewed too slow for my taste and would love a “refresh cache” function as I am used to on other cache systems