> ## Documentation Index
> Fetch the complete documentation index at: https://help.privy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Sync Contacts to Hubspot

> Start growing your list with Privy displays on your Hubspot site.

A unique Privy code must be installed on your HubSpot website for your displays to show and track website events (e.g., display views).

## Copy the code

To manually install your code, you first need to copy it from your Privy account's settings:

* Click on your business name in the upper right corner of your dashboard. Select the **Business Settings** option from the dropdown menu. 

* In the sidebar, select **Privy Code** under the *Business Settings* section. 

* Locate and select the **Default** or **Asynchronous** tab to reveal its details. The default code is the preferred method to install Privy and will allow it to load in-line with everything else on your site. Meanwhile, the asynchronous code will load Privy last. 

* Copy the selected code. 

<img height="200" alt="Screen recording showing how to locate and copy the Privy code from the dashboard" src="https://mintcdn.com/privy/Jffa8F8-oDakCvjD/images/integrations/copy-privy-code.gif?s=eb47ae0868fefc6a0b87f07b7811e350" data-path="images/integrations/copy-privy-code.gif" />

## Install the code

To install your Privy code onto a HubSpot site:

* Log in to your [HubSpot](https://app.hubspot.com/login) account.

* Navigate to **Account Settings** > **Website** > **Pages**. 

* Locate the **Site Header HTML** area, paste your Privy code there, and **Save**.

<img height="200" alt="Screen recording showing where to paste your Privy code into Hubspot" src="https://mintcdn.com/privy/Jffa8F8-oDakCvjD/images/integrations/hubspot-add-privy-code.gif?s=b66d09366199e1ce4829892f3eb347a4" data-path="images/integrations/hubspot-add-privy-code.gif" />

## Verify the installation

The Privy code allows you to display your displays and monitor your website's events (e.g., display views). If your displays aren't displaying properly or event information is missing, verify that the code has been installed and that it's firing correctly:

* Select the **Account** option from the navigation bar in Privy. Your business name appears here. 

* Select the **Business Information** option from the dropdown menu. 

* In the sidebar, select **Privy Code** under the *Business Settings* section. 

* In the *Installation Guides* section, locate and copy your account identifier. 

* Open a page on your website and right-click anywhere on the page.

* In the dropdown menu, select **View page source** or **View source**.

* Use **CTRL-F** or **CMD-F** to search for the identifier that you copied.

<img height="200" alt="Screen recording showing where to locate your Privy code within site code" src="https://mintcdn.com/privy/iaLDDirza-nWCFDh/images/integrations/wordpress-locate-code.gif?s=3896457e7d7c88d24b3cfcc17983671c" data-path="images/integrations/wordpress-locate-code.gif" />

* If the code appears, verify that it has been copied and pasted correctly from your settings.

If the Privy code does not appear or is incorrect, follow [t](https://help.privy.com/article/286-install-privy-on-hubspot#Copy%20the%20code)he steps again to install it properly. If your code appears and has been copied and pasted correctly, verify that it's firing: 

* Open a page on your website and right-click anywhere on the page.

* In the dropdown menu, select **Inspect Element** or **Inspect**. A toolbar will appear at the bottom or side of your screen.

* Click the **Network** tab, then refresh your page. 

* Click the **Name** column to sort the elements alphabetically, then look for widget*.js*. 

* Next to *widget.js,* you should see *304 Not Modified* or *200 OK* in the *Status* column.

<img height="200" alt="Screenshot showing what the Javascript looks like in console" src="https://mintcdn.com/privy/yURZOVyNL5W7sXYG/images/integrations/Locate_JS_in_console.png?fit=max&auto=format&n=yURZOVyNL5W7sXYG&q=85&s=57e00e54160ca143ae3605ed39196a2d" data-path="images/integrations/Locate_JS_in_console.png" />

If you see any other status or the .js code is not found, your tracking code may not be firing correctly. [Contact Support](mailto:support@privy.com) for further troubleshooting steps and assistance.
