• Resolved hramzy

    (@hramzy)


    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

    (@ibenic)

    Hi @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

    (@hramzy)

    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;);
    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:

    If necessary i can give you some login details so you can look at the back end ??

    Plugin Author Igor Benic

    (@ibenic)

    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 6 years, 1 month ago by Igor Benic.
    • This reply was modified 6 years, 1 month ago by Igor Benic.
    Thread Starter hramzy

    (@hramzy)

    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 [email protected]

    Plugin Author Igor Benic

    (@ibenic)

    Hi @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

    (@hramzy)

    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.