If your client is advertising on Facebook, they will likely want to measure the effectiveness of the advertising and optimize the ad campaign. To do this, Facebook offers what they call a "Facebook Pixel", which is essentially a snippet of code, that is designed to be inserted into the code of the website (so that website conversions and site engagement can be tracked).
Please note: You will need the HTML feature enabled on your SiteSwan account, which is only available on select plans.
Here's how to add a Facebook Pixel to a SiteSwan site:
- Assuming the Facebook Pixel is already created, go to the Facebook Ads dashboard and choose the option for "Copy and Paste the Code"
- COPY all of the code that Facebook gives you.
- Login to your SiteSwan dashboard and locate the site to which you want to add the Facebook Pixel. Click "Site Details" next to the site. Then click "EDIT" at the top to make changes to the Site Details.
- Scroll down and look for the 3 HTML boxes on this screen. PASTE the Facebook code into the first ("Head HTML") box and then save your changes.
Note: If you already have code in this section for something else, just place your Facebook Pixel code before or after the code that's already in this section.
Now you can go back to your Facebook Ads dashboard to confirm it's working.