Shopify Trekkie loading extra tracking Pixels

Hi @plasmablobs , I actually found a solution, hacky though it may be. Comment out the first “content_for_header” instance, and then use a Liquid replace string filter to remove the specific pixel id and replace it with an empty string. It looks like this.

{% comment %}{{ content_for_header }}{% endcomment %}
 {{ content_for_header | replace: '12345', '' }}

Inspect the source code on your site to find the pixel id you don’t want and use that instead of ‘12345’.

Here’s the link that helped me find this answer: https://community.shopify.com/c/Shopify-Discussion/Shopify-Trekkie/td-p/358102 (scroll down to Subhranil’s answer)

It’s so frustrating that 3rd parties can bog down stores with unwanted code like this. I wish Shopify would give us a solution for this.

6 Likes