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

# Install on WordPress

> Add the SignalBridge tracking code to a WordPress site with the WPCode plugin

Use this guide for a WordPress site where you can install plugins. It uses the free WPCode plugin, so you do not edit theme files, and the code stays in place when you switch or update your theme.

## Before you start

* You can install plugins on your site. On WordPress.com, plugins and header code depend on your plan, so read WordPress.com's guide to [adding code to headers](https://wordpress.com/support/adding-code-to-headers/) first.
* You have a SignalBridge pixel. If you don't, create one in your [dashboard](https://www.signalbridgedata.com/dashboard) with **Create Pixel**.
* Your site's address is in the pixel's **Allowed domains**, which you can check in the pixel's settings. `example.com` also covers `www.example.com`. Add `*.example.com` to cover every other subdomain.
* SignalBridge is not installed anywhere else on the site, for example in a theme setting or another plugin. Install it in one place only.

## Install

**1. Copy your tracking code**

In your SignalBridge dashboard, open **Pixels** and click **Install Pixel** next to your pixel. On the **Installation** tab, copy the **Tracking code**. It already contains your Pixel ID, your write key and the script address.

**2. Install WPCode**

In your WordPress admin, go to **Plugins → Add New Plugin** and search for **WPCode**. Click **Install Now**, then **Activate**.

**3. Paste the code in the header**

Go to **Code Snippets → Header & Footer**. Paste the tracking code into the **Header** box exactly as you copied it, including the `<script>` tags. Do not paste it into the other boxes as well. Then click **Save Changes** at the top right of the page.

**4. Clear your cache**

If you use a caching plugin or your host caches pages, clear the cache so that visitors get the updated pages.

> [!NOTE]
>
> Keep WPCode installed and active. The code only runs while the plugin is active.

## Verify

**1. Check the page source**

Open your live site in a new tab, right-click the page and choose **View page source**. Search for `pixel.js`. The SignalBridge code should appear near the top, inside `<head>`.

**2. Visit your live site**

Open the site in a private window with ad blockers off. If a cookie banner appears, accept it, because browser tracking follows your visitors' consent choices. In your browser's developer tools, open the **Network** tab, reload the page and filter for `pixel.js`. The request should return status 200.

**3. Watch for the event**

Go back to your SignalBridge dashboard. On a new account, **Checking for events…** turns into your dashboard when the first event arrives. If it shows **Automatic checking paused**, visit your site again and click **Check again**. On an account that already has events, look for a new `PageView` under **Recent Events**.

> [!NOTE]
>
> The **Send Server Test** button only shows that SignalBridge accepts events. It cannot show that the code is installed on your site, that your domain is allowed or that consent was given.

## Common problems

> [accordion] The code is not in the page source
>
> Clear every cache: your caching plugin, your host's cache and any CDN. Then confirm that WPCode is active and that you saved the code in the **Header** box. WPCode prints header code through the `wp_head` hook, so your active theme must call `wp_head()`. Most themes do.

> [accordion] The code shows up as text on my page
>
> The code was pasted without its `<script>` tags. WPCode prints exactly what you paste, so copy the full tracking code again, including the tags.

> [accordion] The pixel.js request fails
>
> If your pixel uses a custom tracking domain, check its DNS record. See [Custom Domains](https://docs.signalbridgedata.com/features/custom-domains.md) and [DNS and SSL](https://docs.signalbridgedata.com/troubleshooting/dns-ssl.md). Also check that your site's content security policy allows the host of the script.

> [accordion] The console shows Conflicting pixel installation refused
>
> SignalBridge is installed twice with different settings, for example by an older plugin or theme setting. The first copy that loads is kept. Remove the older copy so that only one install remains.

## Next steps

* Connect your ad platforms: [Facebook Ads](https://docs.signalbridgedata.com/integrations/facebook-ads.md), [Google Ads](https://docs.signalbridgedata.com/integrations/google-ads.md), [TikTok Ads](https://docs.signalbridgedata.com/integrations/tiktok-ads.md) and [Google Analytics](https://docs.signalbridgedata.com/integrations/google-analytics.md).
* Track your own events: [Event Tracking](https://docs.signalbridgedata.com/guides/event-tracking.md).
* Still no events? See [Events Not Showing](https://docs.signalbridgedata.com/troubleshooting/events-not-showing.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.