# Install the Bullseye pixel

> Add one async script tag to every page. Replace `YOUR_PIXEL_API_KEY` with the key from your Bullseye snippet (dashboard tracking setup, or `GET https://api.app.bullseye.so/api/v1/visitor-tracking/{organization_id}/installation/script/{type}` with an API key).

## Next.js (App Router)

Add the pixel once in the root layout with next/script so it loads on every route.

1. **Add the script to app/layout.tsx.** Replace YOUR_PIXEL_API_KEY with the key from your Bullseye snippet.

```tsx
// app/layout.tsx
import Script from "next/script";

export default function RootLayout({ children }: { children: React.ReactNode }) {
  return (
    <html lang="en">
      <body>
        {children}
        <Script
          src="https://api.app.bullseye.so/api/v1/visitor-tracking/script/YOUR_PIXEL_API_KEY"
          strategy="afterInteractive"
        />
      </body>
    </html>
  );
}
```

2. **Deploy and verify.** Deploy to the production domain registered in Bullseye, open the site, and confirm the script request returns 200 in the network tab.

## Next.js (Pages Router)

Load the pixel from pages/_app.tsx so it runs on every page.

1. **Add the script to pages/_app.tsx.** next/script with afterInteractive keeps it off the critical path.

```tsx
// pages/_app.tsx
import type { AppProps } from "next/app";
import Script from "next/script";

export default function App({ Component, pageProps }: AppProps) {
  return (
    <>
      <Component {...pageProps} />
      <Script src="https://api.app.bullseye.so/api/v1/visitor-tracking/script/YOUR_PIXEL_API_KEY" strategy="afterInteractive" />
    </>
  );
}
```

## React (Vite or Create React App)

Single-page apps only need the tag in index.html.

1. **Add the tag to index.html.** Put it inside <head>. Vite: index.html at the project root. CRA: public/index.html.

```html
<script async defer src="https://api.app.bullseye.so/api/v1/visitor-tracking/script/YOUR_PIXEL_API_KEY"></script>
```

## Plain HTML

Paste the tag inside <head> on every page, or in a shared header include.

1. **Add the tag before </head>.** It loads asynchronously and does not block rendering.

```html
<script async defer src="https://api.app.bullseye.so/api/v1/visitor-tracking/script/YOUR_PIXEL_API_KEY"></script>
```

## Google Tag Manager

Use a Custom HTML tag that fires on All Pages.

1. **Create a Custom HTML tag.** Tags > New > Custom HTML. Paste the snippet.

```html
<script async defer src="https://api.app.bullseye.so/api/v1/visitor-tracking/script/YOUR_PIXEL_API_KEY"></script>
```

2. **Trigger on All Pages, then publish.** Use the same trigger as your other analytics tags, submit, and publish the container.

## WordPress

Add the tag to the site header with a header-scripts plugin or a wp_head hook in a child theme.

1. **Option A: header scripts plugin.** With a plugin such as WPCode, add a new header snippet, paste the tag, and set it to load site-wide.

```html
<script async defer src="https://api.app.bullseye.so/api/v1/visitor-tracking/script/YOUR_PIXEL_API_KEY"></script>
```

2. **Option B: child theme functions.php.** Print the tag from a wp_head hook in a child theme so it survives theme updates.

```php
add_action('wp_head', function () {
  echo '<script async defer src="https://api.app.bullseye.so/api/v1/visitor-tracking/script/YOUR_PIXEL_API_KEY"></script>';
});
```

More: https://www.bullseye.so/for-stack/wordpress

## Webflow

Paste the tag into the site-wide head code and republish.

1. **Site settings > Custom code > Head code.** Paste the snippet, save, and publish the site. Custom code runs on published domains only.

```html
<script async defer src="https://api.app.bullseye.so/api/v1/visitor-tracking/script/YOUR_PIXEL_API_KEY"></script>
```

More: https://www.bullseye.so/for-stack/webflow

## Shopify

Add the tag to theme.liquid so it loads on every storefront page.

1. **Online Store > Themes > Edit code > layout/theme.liquid.** Paste the snippet just before </head> and save.

```html
<script async defer src="https://api.app.bullseye.so/api/v1/visitor-tracking/script/YOUR_PIXEL_API_KEY"></script>
```

More: https://www.bullseye.so/for-stack/shopify

## Verify

1. Deploy to the production domain registered in Bullseye.
2. Load the site and confirm the script request returns 200.
3. Check the dashboard's verification step or `GET https://api.app.bullseye.so/api/v1/visitor-tracking/{organization_id}`.

Identification needs real U.S. traffic on a verified domain; a localhost test proves the tag loads, not that visitors are identified.

Docs: https://docs.bullseye.so/getting-started/install-tracking-pixel

---

Canonical page: https://www.bullseye.so/developers/install
Last updated: 2026-11-18
Full index for agents: https://www.bullseye.so/llms.txt
