Hi! I'm looking to add Facebook Pixel code to track some of our inbound marketing from Facebook to a HubSpot landing page with a lead form. Is there a simple way to do this through the template so that it applies to future landing pages?
You can quickly & easily add a Facebook pixel to all website pages (hosted by HubSpot / with the HubSpot tracking code installed) via HubSpot's ads tools. Head to Settings -> Marketing -> Ads to Connect your Facebook advertising account and then click 'Add Pixel.' This will create a new pixel for you if you do not have one, or it will select the first pixel in your account.
Note: Soon, you will be able to choose the specific pixel you want, across connected accounts, if our selection default is not your preferred pixel.
Hey the Hubspot knowledge resource says you can't use event tracking if you've used Hubspot to install the Facebook pixel. You need to install it on every page manually.
My question is if I'm trying to track a specific event, like a successful form submission, where do I install the code? Normally I would do it on the "thank you" page, but Hubspot uses in-line response for that, not a separate landing page.
Pixels from external ad networks work similarly to the HubSpot tracking code. When you install a pixel or tag on your website or landing page, you'll need to make sure that you follow any relevant government or service-specific policies as mentioned in this article here 🙂.
To install the Facebook pixel, you will need 👇;
In your HubSpot account, click the settings icon in the main navigation bar.
In the left sidebar menu, navigate to Marketing > Ads.
Click the PIXELS tab.
Click Add pixel.
In the dialog box, click the Select a pixel dropdown menu and select the pixel you want to install, then click Add pixel.
The pixel will now be automatically added to all your HubSpot pages or external pages where your tracking code is installed. You can find more information in this article here🙂.