A unique Privy code must be installed on your website to display your campaigns and track your website events (e.g., campaign views). Before attempting a manual install, please review the platform-specific instructions outlined below:
BigCommerce | HubSpot | Ship4Shop |
Shopify | Squarespace | Weebly |
Wix | WordPress.com | WordPress.org |
Volusion |
Please note: If you are using one of the platforms mentioned above, please follow those instructions instead.
Manual install
Follow the steps below to copy and install your code. If you've already attempted the install, learn how to verify the installation.
- In your Privy account, select the Account dropdown menu from the navigation bar. Your business name appears on the menu.
- Select the Business Information 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 and include the snippet on each page you'd like to display campaigns or track events. Place the code before the closing
</head>
tag whenever possible.
Verify the installation
The Privy Code allows you to display your campaigns and monitor your website's events (e.g., page views). If your campaigns aren't displaying properly or event information is missing, verify that the code has been installed and that it's firing correctly:
- In your Privy account, select the Account dropdown menu from the navigation bar. Your business name appears on the menu.
- 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.
- 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 these steps 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.
If you see any other status or the .js code is not found, your tracking code may not be firing correctly. Contact Support for further troubleshooting steps and assistance.