rockerfeller's profile

45 Messages

 • 

1.8K Points

Tuesday, April 8th, 2025

Question about adding the Facebook Pixel - is there a specific spot

Hey Homestead Support,

I'm trying to add the Facebook Pixel code to my website for tracking and ads. (it's the "new" version of the website builder, whatever that's called) I'm not seeing an obvious dedicated section for adding custom scripts like this, but I wanted to make sure I'm not missing anything!

Is there a specific area within Homestead where I can easily insert code like the Facebook Pixel (maybe in the header or footer)?

If not, I was considering using the HTML code element on each page. Is that the recommended approach, or is there a better way I should be thinking about this?

Here's the code I'm trying to add:

<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', 'YOUR_PIXEL_ID_HERE'); // I'll put my actual ID in!fbq('track', 'PageView');</script><noscript><img height="1" width="1" style=""src="https://www.facebook.com/tr?id=YOUR_PIXEL_ID_HERE&ev=PageView&noscript=1" // And here too!/></noscript>

Any guidance on the best way to get this set up would be greatly appreciated!

Thanks!

This conversation is no longer open for comments or replies and is no longer visible to community members.

Oldest First
Selected Oldest First
No Responses!