Did I Place The Pixels Correctly?
-
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,
TimothyP.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″
/></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 –>
- The topic ‘Did I Place The Pixels Correctly?’ is closed to new replies.