Solved

UA / Shopify Session data / Facebook pixel all stopped working

devatttd
Excursionist
14 1 3

Hi. When you put the Google UA id into the field in Shopify settings, how does it get into the page code? Does it get magically inserted by Shopify? Or does it need something in the theme to call it?

 

I changed theme and now Tag Assistant Legacy (chrome extension) reports that UA is not firing (if I change back to the old theme it fires). Shopify's own reporting shows no sessions either! And Facebook Pixel does not fire either (again inserted into shopify settings).

 

https://woowoo.fun

Accepted Solution (1)

devatttd
Excursionist
14 1 3

This is an accepted solution.

Solved: the theme had commented out "{{ content_for_header}} " call and created it's own version, which the docs specifically say not to do.....

https://shopify.dev/docs/api/liquid/objects/content_for_header

 

Which also answers my question about how all that stuff gets there. 🙂

View solution in original post

Replies 2 (2)

devatttd
Excursionist
14 1 3

When I said "how does it get into the page code?", I meant "how does the UA- tracking script get into the generated page code?"

devatttd
Excursionist
14 1 3

This is an accepted solution.

Solved: the theme had commented out "{{ content_for_header}} " call and created it's own version, which the docs specifically say not to do.....

https://shopify.dev/docs/api/liquid/objects/content_for_header

 

Which also answers my question about how all that stuff gets there. 🙂