Using facebook pixels

by 2 replies
2
Hello, just making sure my setup is okay or if there's a better way to optimize my ads.

This is my current campaign structure (sorry for the embarrassing painting skills)



all of my ads pointing to the same url (www.mydomain.com/) with different url tags for tracking.

now, I got all messed up with facebook new pixel and conversion pixels.

What I did is

Index.html page contains facebook default new pixel as follows:

HTML Code:
<!-- Facebook Pixel Code -->
<script>
!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','//connect.facebook.net/en_US/fbevents.js');

fbq('init', 'xxxxxxxxxxx');
fbq('track', "PageView");</script>
<noscript><img height="1" width="1" style="display:none"
src="https://www.facebook.com/tr?id=xxxxxxxxxxx&ev=PageView&noscript=1"
/></noscript>
<!-- End Facebook Pixel Code -->
Thank you page contains Conversion Tracking Pixel (Old):
HTML Code:
<script>(function() {
  var _fbq = window._fbq || (window._fbq = []);
  if (!_fbq.loaded) {
    var fbds = document.createElement('script');
    fbds.async = true;
    fbds.src = '//connect.facebook.net/en_US/fbds.js';
    var s = document.getElementsByTagName('script')[0];
    s.parentNode.insertBefore(fbds, s);
    _fbq.loaded = true;
  }
})();
window._fbq = window._fbq || [];
window._fbq.push(['track', 'xxxxxxxxxx', {'value':'0.00','currency':'USD}]);
</script>
<noscript><img height="1" width="1" alt="" style="display:none" src="https://www.facebook.com/tr?ev=xxxxxxxxxx&amp;cd[value]=0.00&amp;cd[currency]=ILS&amp;noscript=1" /></noscript>

1. Is this the best way to set up a conversion campaign ?
2. All the ads are pointing to the same page, the conversion pixel will report for each one of my ads ?

any tips are welcome !
#social media #facebook #pixels
  • I suggest you to move to the new pixel, since the old one will be removed soon. You can use the same conversion pixel for all of your thank you pages, but you create a custom conversion for each of them. Unfortunately, we're limited to 20 custom conversions for now. Facebook should do an update in the near future.
    • [1] reply
    • Thanks for the kind response.

      What is the correct way though ?

      if this is the code for the thank you page (same as default pixel)

      HTML Code:
      <!-- Facebook Pixel Code -->
      <script>
      !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','//connect.facebook.net/en_US/fbevents.js');
      
      fbq('init', 'xxxxxxxxxxx');
      fbq('track', "PageView");</script>
      <noscript><img height="1" width="1" style="display:none"
      src="https://www.facebook.com/tr?id=xxxxxxxxxxx&ev=PageView&noscript=1"
      /></noscript>
      <!-- End Facebook Pixel Code -->
      fbq('track', "PageView"); should be used ?

      or fbq('track', "Lead"); is enough in thank you page ?

Next Topics on Trending Feed