Support » Plugin: Blank Slate » FB Pixel Code

  • Resolved MattAdams

    (@mattadams)


    Hi,

    Where can I add a FB Checkout pixel code? I only need Blank Slate for one page and can’t seem to find another working plugin that will add a script to only one page.

    Thanks,

    Matt

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Aaron Reimann

    (@areimann)

    I looked at the source code of the page you gave us and I see this in the header:

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

    So, I think you are all set. Blank Slate still calls in all the header and footer code. Even though the page looks “Blank”, it still enqueues (sp?) things properly.

    Hi Aaron.

    Thank you for your reply.

    The pixel code you posted is my Base Pixel, which is on every page on my website and is placed in the theme’s settings.

    The pixel code I needed to see was the Initiate Checkout pixel, which I not only had wrong but which also needs to be set up as a pixel event using a tool in the Ads Manager.

    Apparently it’s just enough to put the code on the page anymore, a pixel event needs to also be set up. The pixels shows up just fine after that.

    So basically the good news is your plugin is working for me after all.

    Thanks again,

    Matt

    Plugin Author Aaron Reimann

    (@areimann)

    Gotcha! Makes sense. Yeah, Blank Slate doesn’t make any modifications to that, so you’re set.

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.