• Resolved timothyofficially

    (@timothyofficially)


    Hello There,

    Please tell me if I have placed the pixel correctly?

    1. I placed pixel ID in settings.
    2. Then on the WordPress page, I clicked CompleteRegistration from the dropdown menu. However, I did not add any details to the value fields.

    Will that still function?

    When I view the source code of the page it all appears in place, however the event code appears just beneath the pixel in the header. To my knowledge, Facebook disallows us to place that event code in the header tag. Can you comment on this? Thank you very much.

    Be Well,
    Timothy

    P.S. I have copy and pasted the full code that appears in the source below, and removed my pixel ID for safety:

    <!– WP Facebook Pixel Code – Main –>
    <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’, ‘numbers’);

    console.log(‘WP Facebook Pixel > Sending PageView event to Facebook’);
    fbq(‘track’, “PageView”);
    var fbqEvents = new Array();
    </script>
    <noscript><img height=”1″ width=”1″ style=”display:none”
    src=”https://www.facebook.com/tr?id=NUMBERS&ev=PageView&noscript=1&#8243;
    /></noscript>
    <!– End WP Facebook Pixel Code – Main –><!– WP Facebook Pixel Code – Page Events –><script>fbqEvents.push({
    “event”: “CompleteRegistration”,
    “data”: “[]”,
    “updateScript”: “”,
    “preventDefault”: false,
    “fbqTrigger”: “sendFBQ(null, event);”
    });</script><noscript></noscript><!– END WP Facebook Pixel Code – Page Events –>

Viewing 1 replies (of 1 total)
  • Plugin Author jacobmhulse

    (@jacobmhulse)

    Timothy,

    The CompleteRegistration event does not require any data at all, so what you have done should be perfect. There are 2 ways to verify the pixel was delivered to Facebook:

    1. Use Facebook Pixel Helper: https://chrome.google.com/webstore/detail/facebook-pixel-helper/fdgfkebogiimcoedlicjlajpkdmockpc
    2. Open Chrome Developer tools ([ctrl]+[shift]+[i]) and open the Console tab. WP Facebook Pixel outputs a line to the log there each time a pixel is triggered

    With regards to the placement of the code, what you are seeing is not the triggering of events but the definition of events to trigger. Events are not triggered until the entire page is loaded for performance reasons.

    Please let us know if you have any additional questions.

    Regards,
    Jacob

Viewing 1 replies (of 1 total)
  • The topic ‘Did I Place The Pixels Correctly?’ is closed to new replies.