# Adding code for Facebook Pixel

**URL:** <https://community.hubspot.com/t/adding-code-for-facebook-pixel/503>\
**Category:** Social Tools\
**Tags:** ads, landing-pages\
**Created:** [November 30, 2016, 10:02pm UTC](https://community.hubspot.com/t/adding-code-for-facebook-pixel/503 "2016-11-30T22:02:52Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![DianaGomez](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dianagomez/32/48035_2.png) [@DianaGomez](https://community.hubspot.com/u/DianaGomez)\
**Post date:** [October 5, 2022, 7:56pm UTC](https://community.hubspot.com/t/adding-code-for-facebook-pixel/503/6 "2022-10-05T19:56:39Z")

</div>

Hi @minozo,

Pixels from external ad networks work similarly to the [HubSpot tracking code](https://knowledge.hubspot.com/articles/kcs_article/reports/install-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](https://knowledge.hubspot.com/ads/install-pixels-from-external-ad-networks#before-you-get-started)🙂.

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](https://knowledge.hubspot.com/ads/install-pixels-from-external-ad-networks) 🙂.

Hope this helps,

Diana

---

_[View the full topic](https://community.hubspot.com/t/adding-code-for-facebook-pixel/503)._
