Title: FB pixel code fires twice
Last modified: April 27, 2020

---

# FB pixel code fires twice

 *  Resolved [Joris](https://wordpress.org/support/users/jorisdw13/)
 * (@jorisdw13)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/fb-pixel-code-fires-twice/)
 * Hi,
 * I’ve activated the plugin and all seems to work fine.
    Until I go to a product
   page and click the “add to cart” button.
 * Which it then states the code is fired twice.
    On further inspection with the
   FB pixel helper, it states everything is loaded twice. (although it only gives
   a warning with the add to cart one on initial load)
 * I’ve already checked every possible place where this extra FB pixel code might
   be placed. But there is none to be found. When I disable the plugin no FB pixel
   is loaded.
 * We also have a caching plugin but this is disabled.
    I saw in another thread 
   this might have something to do with the theme. So I’ve changed the theme and
   it seems to work properly.
 * But where do I need to look in order to find where the issue lies?
    Can you please
   help me where I need to look in order to get this fixed?
 * Thank you

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [PixelYourSite](https://wordpress.org/support/users/pixelyoursite/)
 * (@pixelyoursite)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/fb-pixel-code-fires-twice/#post-12738192)
 * Hi Joris,
 * It’s definitely a problem with the theme, but I can’t tell what is wrong.
 * What theme do you use? I’ll try to replicate it and look for some solution, if
   possible.
 *  Thread Starter [Joris](https://wordpress.org/support/users/jorisdw13/)
 * (@jorisdw13)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/fb-pixel-code-fires-twice/#post-12743701)
 * Hi,
 * We use the Shopkeeper theme.
 *  Thread Starter [Joris](https://wordpress.org/support/users/jorisdw13/)
 * (@jorisdw13)
 * [6 years ago](https://wordpress.org/support/topic/fb-pixel-code-fires-twice/#post-12839716)
 * Hi again,
 * I noticed it was only firing twice with the “add to cart” button.
    Probably because
   button presses are tracked and the “add to cart” button is also being tracked.
   Which might cause the double firing.
 * Once I’ve deactivated the tracking of the “add to cart” it doesn’t fire twice
   anymore. But the “Add to cart” button tracking has more information attached 
   to it.
 * Is there a problem if both the standard button press is tracked and the “add 
   to cart” button is tracked? Does this cause any problems in the Facebook analytics?
   or can this warning be ignored?
 * Please let me know.
 * Thank you
    -  This reply was modified 6 years ago by [Joris](https://wordpress.org/support/users/jorisdw13/).
 *  Plugin Author [PixelYourSite](https://wordpress.org/support/users/pixelyoursite/)
 * (@pixelyoursite)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/fb-pixel-code-fires-twice/#post-13346520)
 * Sorry for the late reply. Please let me know if you still need a solution for
   this. Do I understand correctly that you manage to fix the problem?

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘FB pixel code fires twice’ is closed to new replies.

 * ![](https://ps.w.org/pixelyoursite/assets/icon-256x256.jpg?rev=3178123)
 * [PixelYourSite - Your smart PIXEL (TAG) & API Manager](https://wordpress.org/plugins/pixelyoursite/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/pixelyoursite/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/pixelyoursite/)
 * [Active Topics](https://wordpress.org/support/plugin/pixelyoursite/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/pixelyoursite/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/pixelyoursite/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [PixelYourSite](https://wordpress.org/support/users/pixelyoursite/)
 * Last activity: [5 years, 9 months ago](https://wordpress.org/support/topic/fb-pixel-code-fires-twice/#post-13346520)
 * Status: resolved