Removing 1 facebook pixel

Highlighted
Tourist
7 0 1

I have accidentally added 2 facebook pixels to my website and wanted to remove one of them. I looked up the information for deleting the facebook pixel, but the documentation says to go into theme.liquid and search the code in the <head></head> tag, but there is no facebook pixel code there. I have added the code through Facebook, not manually and I am using the venture theme.

1 Like
Highlighted
New Member
2 0 0

I have the same problem. I changed pixel under preferences and thought that would be it. However, when I use the Facebook Pixel Helper extension to Chrome, I can see that both the new and the old pixel are firing. I've read tons of community posts here and they all say what you're explaining; that it's between the <head> </head> tags, but I cannot find anything there. 

 

Obviously many have the same problem, and there's got to be a solution to this ... 

0 Likes
Highlighted
Shopify Staff
Shopify Staff
567 45 125

Hi, @MirceaDanBiz and @Asgeir!

Julie here from Shopify Support.

Typically, merchants will only add one Facebook pixel to their store. To make this easier, Shopify allows you to enter your pixel ID in Online store > Preferences, rather than your theme's code. Once the pixel is added to your online store preferences, it will automatically track Facebook pixel standard events. You can view a breakdown of these tracked events here

Are you using the Facebook Pixel Helper? This is a useful tool that will show you how many Facebook pixels are firing on your website. Is this how you're seeing multiple pixels? If so, are you using the Pixel Helper when viewing the frontend of your website, or are you using it while in the Theme Editor? For the most accurate results, it's always recommended that you use this tool while visiting your website outside of the Theme Editor.

If you're seeing an extra Facebook pixel you don't recognize, and it is not in your theme's code, the pixel was likely added through an app on your shop. For example, the Kit and Facebook Marketing apps will inject a pixel associated with your Ad Account; this pixel is only removed once the app is deleted from your store. In fact, it's quite common for apps to add pixels and I can definitely see how this could cause some confusion. Do you have either of these apps installed? 

If you're still not able to determine where the pixel is coming from, feel free to share your store URL here; I'd be happy to use the Pixel Helper here on my end to see if we can determine where that extra pixel is coming from.

Looking forward to hearing from you! 

Julie | Social Care @ Shopify
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Click Accept as Solution 

2 Likes
Highlighted
New Member
2 0 0

Hi Julie, 

 

Thank you for your reply and explanation. Yes, I'm using the Facebook Pixel Helper and using it when viewing the frontend of my website. I can see two pixels firing, i.e. the new one as well as the old one. Pls note, I replaced the pixel ID in Online store > Preferences, but not my theme's code. I have not used any apps that install pixels such as Kit or Facebook Marketing ... and I do recognise my old pixel number there in the Facebook Pixel Helper. 

 

The problem is then, that I replaced the pixel ID and now both are firing according to the Facebook Pixel Helper. As far as I know, having two pixels firing could cause some inaccurate analytics... or so I've been told. I wonder then, how can my old pixel still be firing when I have replaced it by a new pixel ID in Online store > Preferences? It must be somewhere in the code then.

 

In another post here on the forum I saw that it should be in theme.liquid between <head> </head> tags, but I cannot find anything related to Facebook and the pixels between the head tags. 

 

Do you have any idea how this could be solved?

 

Thanks again Julie for taking the time :)

0 Likes
Highlighted
Shopify Staff
Shopify Staff
567 45 125

Hey, @Asgeir.

Thanks for confirming that you're using the Pixel Helper. 

If the pixel is not in your theme's code, then it really sounds like it's related to one of these apps; this situation is quite common and oftentimes, merchants will still have these apps installed, even though they aren't actively using them. Although you have not used Kit or Facebook Marketing, do you have either of these apps installed? You can confirm by heading into Apps in your Admin. Merely having the Facebook Marketing app installed, for example, will automatically add another pixel to your store. This can only be removed by completely uninstalling the app. You can learn more about how Facebook pixels are added through the Facebook Marketing app here

Please let me know if either app is installed in your store!

Julie | Social Care @ Shopify
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Click Accept as Solution 

0 Likes
Highlighted
New Member
2 0 1

Hi Julie, I have the same problem but I deleted the apps and the unwanted FB pixel is still there. Any suggestions?

0 Likes
Highlighted
Shopify Staff
Shopify Staff
567 45 125

Hi, @Mego!

Which apps did you delete and where are you seeing the extra Facebook pixel? Are you using the Pixel Helper? If you can pass along the link to your store, I'd be happy to use the Pixel Helper here on my end and take a look! 

Looking forward to hearing from you. 

Julie | Social Care @ Shopify
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Click Accept as Solution 

0 Likes
Highlighted
New Member
2 0 1
Hi Julie,

Just solved it, so no problem! It was google tag manager that was causing
the issue. All solved now thanks!


1 Like
Highlighted
Tourist
3 0 1

Hi Julie!

 

We are having a similar problem with our store (www.joandjax.com). We were having a lot of problems with our pixel firing twice at checkout, and I could not resolve the problem so I removed the pixel entirely to see if I could isolate where the problem was coming from. We have no pixel in our preferences, theme.liquid, checkout.liquid, etc. yet we STILL have our pixel firing on our website. I have checked every possible app and integration I can think of and I still cannot find it. We do not have any of the apps you listed installed. Would love if you could take a look, as this has been a huge headache. 

 

Thank you so much!

- Anna 

0 Likes
Highlighted
Shopify Staff
Shopify Staff
567 45 125

Hi, Anna!

Thanks for outlining the troubleshooting steps that you've already taken. Taking a look at your website, I'm also seeing that there is one pixel currently firing. Out of curiosity, is this the same pixel associated with your Facebook Ads account, or is it a different one? 

While I'm unable to access your theme's code here on my end, another troubleshooting step I recommend trying is to preview a fresh, unedited version of your current theme; this would help us confirm that the pixel isn't hidden elsewhere in your code.

If you're still seeing the pixel, then this may be due to other third-party app scripts. In this case, I'd be happy to follow up with you via email to continue troubleshooting. Alternatively, our live support team can work with you to rule out each individual app you have installed using our internal tooling systems. 

Let me know how that goes!

Julie | Social Care @ Shopify
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Click Accept as Solution 

1 Like