> ## 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.

# Install Privy on WordPress.org

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

A unique Privy code must be installed on your WordPress.org website in order to display your displays and track your website events (e.g., display views).

## Install via plug-in

Follow the steps below to download and install the Privy plugin for WordPress. If you need the code to load asynchronously, which means it will load last, you will need to install the code manually.

* Click [here](https://s3.amazonaws.com/privy-production/assets/privy-wordpress-latest.zip) to download the WordPress Plugin and save it to your computer.
* Upload the **privy-wordpress.zip** file to your WordPress site. To do this, navigate to the **Admin dashboard** in your WordPress site and select **Plugins** > **Add New** from the sidebar. 

<img height="200" alt="Screenshot showing how to add a new plugin within wordpress" src="https://mintcdn.com/privy/iaLDDirza-nWCFDh/images/integrations/wordpress-add-new-plugin.jpg?fit=max&auto=format&n=iaLDDirza-nWCFDh&q=85&s=462159b8ea24eec1100e247d4bc4741b" data-path="images/integrations/wordpress-add-new-plugin.jpg" />

* On the subsequent screen, select the **Upload** option. 

<img height="200" alt="Screenshot pointing out where to upload your Privy plugin" src="https://mintcdn.com/privy/iaLDDirza-nWCFDh/images/integrations/wordpress-upload-plugin.png?fit=max&auto=format&n=iaLDDirza-nWCFDh&q=85&s=f657b9d676e3675672dfd1518e5bb781" data-path="images/integrations/wordpress-upload-plugin.png" />

* Once the upload is complete, click **Activate Plugin** to activate the plugin on your site.

<img height="200" alt="Screenshot pointing out where to Activate your Privy Plugin on wordpress" src="https://mintcdn.com/privy/iaLDDirza-nWCFDh/images/integrations/wordpress-activate-plugin.png?fit=max&auto=format&n=iaLDDirza-nWCFDh&q=85&s=65910d0aeb1c0354e1839134336b683c" data-path="images/integrations/wordpress-activate-plugin.png" />

* Navigate to the [Privy Code](https://dashboard.privy.com/settings/widget) page in your account's Settings.
* Locate and copy the code listed in the *Your Account Identifier* section, as shown below:

<img height="200" alt="Screenshto showing where to locate your Privy account ID from your Privy Code settings page" src="https://mintcdn.com/privy/30j8OrQ8hHkK7DBO/new-images/integrations/locate-privy-account-id.png?fit=max&auto=format&n=30j8OrQ8hHkK7DBO&q=85&s=cf5c26255e81f82ee2100948e6ba5cd9" data-path="new-images/integrations/locate-privy-account-id.png" />

* In WordPress, enter the account identifier into the Privy Website Widget settings and save. Access the page by navigating to the **Admin dashboard** > **Settings** *>* **Privy Website Widget**. 

And that's it! Now, your site will display any display where the plugin/widget is active.  

## Install the code manually

If you need the code to load asynchronously, which means it will load last, you will need to install the code manually by following the steps below:

* Navigate to the [Privy Code](https://dashboard.privy.com/settings/widget) page in your account's Settings.
* Locate and select the **Default** or **Asynchronous** tab to reveal its details. The default code is the preferred method to install Privy, allowing it to load in line with everything else on your site. Meanwhile, the asynchronous code will load Privy last. 
* Copy the selected code.

<video autoPlay muted loop playsInline className="copy-privy-code" src="https://mintcdn.com/privy/FgROYLbT_pFyxYR7/new-images/integrations/locate-privy-code.mp4?fit=max&auto=format&n=FgROYLbT_pFyxYR7&q=85&s=2ff6db975d39d4cbed51e972c19b4a5a" data-path="new-images/integrations/locate-privy-code.mp4" />

* Log in to your WordPress account.
* In the left sidebar menu, navigate to **Appearance** > **Editor**.

<img height="200" alt="Screenshot showing where to access the site editor in Wordpress" src="https://mintcdn.com/privy/iaLDDirza-nWCFDh/images/integrations/wordpress-editor.png?fit=max&auto=format&n=iaLDDirza-nWCFDh&q=85&s=7679cd6fe663234445d0f1bf2c383b50" data-path="images/integrations/wordpress-editor.png" />

* In the list of theme files on the right side of the editor, select your **Theme Header**.

<img height="200" alt="Screenshot showing where to access the Theme Header from within the Wordpress site editor" src="https://mintcdn.com/privy/iaLDDirza-nWCFDh/images/integrations/wordpress-header.png?fit=max&auto=format&n=iaLDDirza-nWCFDh&q=85&s=0bb470dab61a4715bfcb819628029fcb" data-path="images/integrations/wordpress-header.png" />

* Scroll to the bottom of the file, paste in the tracking code, and select **Update File**. If you are running a caching plugin, you must clear your cache now in that plugin's settings.

<img height="200" alt="Screenshot showing where to update your Wordpress site file with your Privy code" src="https://mintcdn.com/privy/iaLDDirza-nWCFDh/images/integrations/wordpress-manual-code-placement.png?fit=max&auto=format&n=iaLDDirza-nWCFDh&q=85&s=4970eb3f99f61f762be74e0ad3183b54" data-path="images/integrations/wordpress-manual-code-placement.png" />

## 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:

* Navigate to the [Privy Code](https://dashboard.privy.com/settings/widget) page in your account's settings.
* 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 your site" 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 the instructions under the Plug-In section of this article 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 how the Javascript may appear 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.
