Announcement

Collapse
No announcement yet.

Facebook Pixel code?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Facebook Pixel code?

    Hello,

    Having some trouble getting the Facebook pixel code to work properly.

    Can anyone advise me of the best place to put this code?

    #2
    We put our pixel code in the head of our main site layout - before </head>

    There are different pixels for different things - our main one in the head is page view - but you can add code in the checkout too although I've not had much success with conversion tracking. I've not spent a huge amount of time playing with it so probably need to have some time to spend testing it.

    Our page view one is definitely working - you can get a chrome plug in which shows you if it is working or not.

    Our code looks like this:

    <!-- 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','https://connect.facebook.net/en_US/fbevents.js');

    fbq('init', '322779351179389');
    fbq('track', "PageView");</script>

    <noscript><img height="1" width="1" style="display:none"
    src="https://www.facebook.com/tr?id=322779351179389&ev=PageView&noscript=1"
    /></noscript>
    <!-- End Facebook Pixel Code -->

    Comment


      #3
      Thank you. I think thats what we have, its the conversions its wanting us to expand into. I will have another play around.

      Thanks

      Comment

      Working...
      X