How can I connect my existing Facebook pixel id to track it with HubSpot, my website is not hosted in Hubspot and 've already put my FbPixel script in my websites footer?
Hello @RonyAlmdz you will need to use the tracking pixel generated in your conten settings for any tracking to work.
The steps below walk through installing the Facebook pixel base code in your content settings and the Facebook event code on your pages.
1. Install the Facebook pixel base code
In your HubSpot Marketing account, navigate to Content > Content Settings.
Scroll to the Site Header HTML section and paste the Facebook pixel base code. Do not include the <nonscript> portion of the pixel code here.
In theSiteFooter HTMLsection, paste the<nonscript> portion of the pixel code.
Please note: the<nonscript>section at the end of your Facebook pixel code must be pasted into the footer HTML to avoid invalid HTML from being generated on the page.
Click Save changes at the bottom.
Once the code has been added, check that your pixel is working by navigating to thePixelstab in your Facebook Ads Manager, then clicking Send Test Traffic. If your status readsActive, your base code has been installed correctly. This can take several minutes to update.
2. Install the Facebook event code on your page
In your HubSpot Marketingaccount, navigate toContent>Landing PagesorWebsite Pages.
Locate and hover over the page in the dashboard and clickEdit. The Facebook event code should be added to the final page of your offer, which is usually your thank youpage.
Click theSettingstab and scroll down toAdvanced Options, then clickEdit Footer HTML.
Paste the Facebook event code in the dialog box that appears, then click Save changes.
ClickUpdate or Publishin the upper right corner of the page editor.
Please note: in most instances, this code will conflict with other code on your page when added to theHead HTML. In order for it to fire correctly, please be sure to add the Facebook event code to theFooter HTML.
Hello @RonyAlmdz you will need to use the tracking pixel generated in your conten settings for any tracking to work.
The steps below walk through installing the Facebook pixel base code in your content settings and the Facebook event code on your pages.
1. Install the Facebook pixel base code
In your HubSpot Marketing account, navigate to Content > Content Settings.
Scroll to the Site Header HTML section and paste the Facebook pixel base code. Do not include the <nonscript> portion of the pixel code here.
In theSiteFooter HTMLsection, paste the<nonscript> portion of the pixel code.
Please note: the<nonscript>section at the end of your Facebook pixel code must be pasted into the footer HTML to avoid invalid HTML from being generated on the page.
Click Save changes at the bottom.
Once the code has been added, check that your pixel is working by navigating to thePixelstab in your Facebook Ads Manager, then clicking Send Test Traffic. If your status readsActive, your base code has been installed correctly. This can take several minutes to update.
2. Install the Facebook event code on your page
In your HubSpot Marketingaccount, navigate toContent>Landing PagesorWebsite Pages.
Locate and hover over the page in the dashboard and clickEdit. The Facebook event code should be added to the final page of your offer, which is usually your thank youpage.
Click theSettingstab and scroll down toAdvanced Options, then clickEdit Footer HTML.
Paste the Facebook event code in the dialog box that appears, then click Save changes.
ClickUpdate or Publishin the upper right corner of the page editor.
Please note: in most instances, this code will conflict with other code on your page when added to theHead HTML. In order for it to fire correctly, please be sure to add the Facebook event code to theFooter HTML.