Need help to stop trekkie load in shopify

Need help to stop trekkie load in shopify

Prithiba
Visitor
3 0 0

I can see the facebook pixel call from the shopify. I need to stop that one, which comes from the source code. And I notice in dev console named as trekkie, but unable to find the trekkie code in theme.liquid of shopify. Even I tried to remove the code using the below comment, still I'm facing the facebook pixel call was firing

 

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

 

Please help me on this ASAP

Replies 10 (10)

Jason
Shopify Partner
11196 226 2287

Why do you need to stop it? 

★ I jump on these forums in my free time to help and share some insights. Not looking to be hired, and not looking for work. http://freakdesign.com.au ★
Prithiba
Visitor
3 0 0

I want to track the facebook pixel through GTM instead of tag from shopify

Gibson009
Tourist
6 0 0

There is another method for this  purpose that must need to address too. 

PrinceVezt
Tourist
7 0 0

Trekkie code cause double count on pageviews ang it makes the bounce rate on GA dropped.

PrinceVezt
Tourist
7 0 0

Hi Prithiba,

Have you ever to solve this?
we're having the same issue. trekkie code cause double pageviews and makes bounce rate dropped on GA.

Thanks

ogeid
Shopify Partner
68 0 23

I have the same issue. Did you ever figure out a solution?

D.E.W. L.A. - Web Design
https://dew.la

MamaBabyTime
Visitor
3 0 0

I have the same issue, trekkie is terrible....

 

Have you find a way to fix it??

Raffaele_Girace
Visitor
1 0 0

I just found out how to stop Trekkie.

 

You just need to add this code at the very top of tour theme.liquid, just below the <head> tag:

window.trekkie = {
load: function(config) {
if (config && config['Facebook Pixel']) {
// Block Trekkie
delete config['Facebook Pixel'];
console.log("Blocked Facebook Pixel configuration for trekkie.");
}
}
};

This will allow you to stop the whole Trekkie tracking code, not just facebook as shown in the code. 

Hope to help!

luiscamp
Visitor
2 0 0

Does anyone can confirm is it really working?

clytie100
Visitor
1 0 0

I just tried it and I can confirm that it works (at least for page_views being blocked, i haven't checked with facebook), but it needs to be wrapped in <script>. So, revised version:

 

<script>

window.trekkie = {
load: function(config) {
if (config && config['Facebook Pixel']) {
// Block Trekkie
delete config['Facebook Pixel'];
console.log("Blocked Facebook Pixel configuration for trekkie.");
}
}
};

</script>