Facebook Pixel not tracking leads?

3 replies
  • PPC/SEM
  • |
Hello Warriors,

I really hope you can share some input here.

We setup a Facebook Ad. If clicked on, you will be redirected to our optin landing page (ebook as the freebie) created using leadpages. (standard template, not the drag and drop)

After you opted in, you will be redirected to our thank you page which is also our download page of our free ebook.

I put this code on our landing page (optin form)


<!-- Facebook Pixel Code -->
<script>
!function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=f unction(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(argum ents)};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');

fbq('init', 'myidhere');
fbq('track', "PageView");</script>
<noscript><img height="1" width="1" style="display:none"
src="https://www.facebook.com/tr?id=myidhere&ev=PageView&noscript=1"
/></noscript>
<!-- End Facebook Pixel Code -->


then I add this code to our thank you page, fbq('track', 'Lead');

<!-- Facebook Pixel Code -->
<script>
!function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=f unction(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(argum ents)};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');

fbq('init', 'myidhere');
fbq('track', "PageView");fbq('track', 'Lead');</script>
<noscript><img height="1" width="1" style="display:none"
src="https://www.facebook.com/tr?id=myidhere&ev=PageView&noscript=1"
/></noscript>
<!-- End Facebook Pixel Code -->


Pixel helper says its working fine. We created a customer conversion to track leads coming thru ads. But lead(Facebook pixel) column in reporting is not populating any lead.


Any information you may provide will highly be appreciated. I tried asking to the facebook community but I haven't received any clear answer so far.

Thanks,
Louie
#facebook #leads #pixel #tracking
  • Profile picture of the author OOA
    Hi Louie,

    Try to lay out your pixel code this way. I had something similar before and this fixed it.

    fbq('track', "PageView");
    fbq('track', 'Lead');
    </script>
    <noscript><img height="1" width="1" style="display:none"
    src="https://www.facebook.com/tr?id=myidhere&ev=PageView&noscript=1"
    /></noscript>

    Cheers
    {{ DiscussionBoard.errors[10766557].message }}
  • Profile picture of the author dburk
    Hi Louie,

    Why not use Facebook Custom Conversions instead?

    It's much easier to setup and manage than the old method of event tracking. As long as a pageview of your Thank You page is all you are tracking for a conversion, you can simply setup a Custom Conversion using a URL rule. It take 2 minutes to setup, and you don't need to add any additional code to your website, the Facebook Pixel code is all that you need on your webpages.

    If you are tracking a specific event on a page, like a click of a specific button, or some other user interaction, then you will need to add a conversion event tracking pixel, but that code snippet is no longer needed for pageview tracking, Custom Conversions makes it obsolete.

    To create a custom conversion:

    Go to your custom conversions section
    1. Click Create Custom Conversion.
    2. Add the URL, or part of the URL, that represents your custom conversion (ex: URL contains /thankyou.php for a thank-you page after a purchase). This would be equivalent to using the Make purchase standard event.
    A fantastic way of managing all of your tracking tags is to use the Google Tag Manager. Our marketing agency manages many clients and all we ever need to do is add that one single container code snippet to every page of our clients' websites. By placing that single code snippet on all webpages we are able to create and manage marketing tags of all types, without ever touching their website code again. You can add Facebook Pixel, Google Analytics, AdWords Conversions, Hotjar, or pretty much any other code snippet there is to your website without having to modify your website's coding. You can easily control when, where, and what events to fire a tag.
    {{ DiscussionBoard.errors[10766930].message }}
    • Profile picture of the author magiclouie
      Originally Posted by OOA View Post

      Hi Louie,

      Try to lay out your pixel code this way. I had something similar before and this fixed it.

      fbq('track', "PageView");
      fbq('track', 'Lead');
      </script>
      <noscript><img height="1" width="1" style="display:none"
      src="https://www.facebook.com/tr?id=myidhere&ev=PageView&noscript=1"
      /></noscript>

      Cheers
      Thanks a lot for your input. We will try this out.


      Originally Posted by dburk View Post

      Hi Louie,

      Why not use Facebook Custom Conversions instead?

      It's much easier to setup and manage than the old method of event tracking. As long as a pageview of your Thank You page is all you are tracking for a conversion, you can simply setup a Custom Conversion using a URL rule. It take 2 minutes to setup, and you don't need to add any additional code to your website, the Facebook Pixel code is all that you need on your webpages.

      If you are tracking a specific event on a page, like a click of a specific button, or some other user interaction, then you will need to add a conversion event tracking pixel, but that code snippet is no longer needed for pageview tracking, Custom Conversions makes it obsolete.



      A fantastic way of managing all of your tracking tags is to use the Google Tag Manager. Our marketing agency manages many clients and all we ever need to do is add that one single container code snippet to every page of our clients' websites. By placing that single code snippet on all webpages we are able to create and manage marketing tags of all types, without ever touching their website code again. You can add Facebook Pixel, Google Analytics, AdWords Conversions, Hotjar, or pretty much any other code snippet there is to your website without having to modify your website's coding. You can easily control when, where, and what events to fire a tag.
      We will consider that. I have mentioned that to my partner already.
      {{ DiscussionBoard.errors[10773667].message }}

Trending Topics