Title: Facebook Pixel Tracking
Last modified: December 26, 2018

---

# Facebook Pixel Tracking

 *  Resolved [hramzy](https://wordpress.org/support/users/hramzy/)
 * (@hramzy)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/facebook-pixel-tracking-2/)
 * Hi, i have added the facebook tracking pixel code into the header section under
   script in the settings.
 * For some reason the tracking script is being picked up by facebook pixel checker
   chrome plugin but im getting this error message.
 * “We detected event code but the pixel has not activated for this event, so no
   information was sent to Facebook. This could be due to an error in the code, 
   but could also occur if the pixel fires on a dynamic event such as a button click.”
 * Can someone help please!

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

 *  Plugin Author [Igor Benic](https://wordpress.org/support/users/ibenic/)
 * (@ibenic)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/facebook-pixel-tracking-2/#post-11027087)
 * Hi [@hramzy](https://wordpress.org/support/users/hramzy/),
 * I have not gotten such error. The pixel fires on page load so that should be 
   fine. Might be a code. You can type the pixel code here so I can see if there
   are any errors in it. Just leave out the ID of your pixel so bots won’t pick 
   it up here.
 *  Thread Starter [hramzy](https://wordpress.org/support/users/hramzy/)
 * (@hramzy)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/facebook-pixel-tracking-2/#post-11048133)
 * I’m using the pixel checker, I can’t actually post an image on here I don’t think
   otherwise I would show you what it’s saying.
 * This is the code for page view that I have added to the script part of the plugin.
   I copied it directly from Facebook so i don’t see a reason why I shouldn’t work.
 * <!– Facebook Pixel Code –>
 *  !function(f,b,e,v,n,t,s)
    {if(f.fbq)return;n=f.fbq=function(){n.callMethod? 
   n.callMethod.apply(n,arguments):n.queue.push(arguments)}; if(!f._fbq)f._fbq=n;
   n.push=n;n.loaded=!0;n.version=’2.0′; n.queue=[];t=b.createElement(e);t.async
   =!0; t.src=v;s=b.getElementsByTagName(e)[0]; s.parentNode.insertBefore(t,s)}(
   window, document,’script’, ‘[https://connect.facebook.net/en_US/fbevents.js&#8217](https://connect.facebook.net/en_US/fbevents.js&#8217););
   fbq(‘init’, ‘pixelcodehere’); fbq(‘track’, ‘PageView’);
 * 
    <!– End Facebook Pixel Code –>
 * This is the script that im using to track the button press conversions. I have
   used this code previously on mulitiple websites and it has worked no problem.
 * <script type=”text/javascript”>
    jQuery( ‘.giveasap_button’ ).click(function(){
   fbq(‘track’, ‘AddToCart’); }); </script>
 * The code changes to the scrip underneath when saved.
 * jQuery( ‘.giveasap_button’ ).click(function() {
    fbq(‘track’, ‘Giveaway Entered’);});
 * If you have the pixel checker installed maybe you can check the errors for yourself.
   I have made a test giveaway here: [](https://dealpanda.co/giveaway/pixel-test/)
 * If necessary i can give you some login details so you can look at the back end
   🙂
 *  Plugin Author [Igor Benic](https://wordpress.org/support/users/ibenic/)
 * (@ibenic)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/facebook-pixel-tracking-2/#post-11053804)
 * In the header, put the Facebook pixel part (without script tags and without comments
   <!– –>).
 * In the footer setting, add
 *     ```
       jQuery(document).ready(function(){
       jQuery( '.giveasap_button' ).click(function() {fbq('track', 'AddToCart');});
       });
       ```
   
 * Make sure that the jQuery part is put inside the footer because we wait for jQuery
   to be loaded. Then we also wait for the document to be ready so all elements 
   have been loaded (we are sure that the button is loaded before we try to attach
   a click event to it).
 * I’ve tried it and I’ve seen that data is being sent to Facebook through the Network
   tab of Developer Tools in the browser.
    -  This reply was modified 7 years, 5 months ago by [Igor Benic](https://wordpress.org/support/users/ibenic/).
    -  This reply was modified 7 years, 5 months ago by [Igor Benic](https://wordpress.org/support/users/ibenic/).
 *  Thread Starter [hramzy](https://wordpress.org/support/users/hramzy/)
 * (@hramzy)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/facebook-pixel-tracking-2/#post-11060207)
 * Still not working.
    I can see that the data is being sent through the network
   tab of developers tool but it’s not showing up on facebooks end for both page
   view and also the add to cart jquery that you have added.
 * I even added the pixel to another website and it worked fine.
 * Is there a way you could email me and I will give you logins for my website so
   you can have a look yourself? Everything set up fine but the pixel isn’t firing…
 * My email address is [078736@gmail.com](https://wordpress.org/support/topic/facebook-pixel-tracking-2/078736@gmail.com?output_format=md)
 *  Plugin Author [Igor Benic](https://wordpress.org/support/users/ibenic/)
 * (@ibenic)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/facebook-pixel-tracking-2/#post-11060682)
 * Hi [@hramzy](https://wordpress.org/support/users/hramzy/),
 * I’ve tried it with the code provided (with my own pixel) and I see that the AddToCart
   event gets registered.
 * You can send me temporary credentials with admin access to your site through 
   my contact form ibenic.com/contact and I can see and set it up if something is
   wrong.
 *  Thread Starter [hramzy](https://wordpress.org/support/users/hramzy/)
 * (@hramzy)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/facebook-pixel-tracking-2/#post-11060768)
 * I have sent you login details through the form you provided 🙂

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

The topic ‘Facebook Pixel Tracking’ is closed to new replies.

 * ![](https://ps.w.org/giveasap/assets/icon.svg?rev=1967616)
 * [Simple Giveaways - Grow your business, email lists and traffic with contests](https://wordpress.org/plugins/giveasap/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/giveasap/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/giveasap/)
 * [Active Topics](https://wordpress.org/support/plugin/giveasap/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/giveasap/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/giveasap/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [hramzy](https://wordpress.org/support/users/hramzy/)
 * Last activity: [7 years, 5 months ago](https://wordpress.org/support/topic/facebook-pixel-tracking-2/#post-11060768)
 * Status: resolved