Install the Bullseye Pixel: Next.js, React, WordPress, Webflow, Shopify, GTM | Bullseye
Developers

Install the Bullseye pixel

One async script tag in the site head. Copy the snippet with your pixel key from Settings > Tracking in the Bullseye dashboard, then follow the recipe for your stack.

Next.js (App Router)

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

  1. 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. 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. 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. 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. 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. 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. 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. 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. 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 on Bullseye for WordPress

Webflow

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

  1. 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 on Bullseye for Webflow

Shopify

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

  1. 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 on Bullseye for Shopify

Verify the install

Load the production site and confirm the request to visitor-tracking/script returns 200. The domain must match one registered in Bullseye; identification only covers U.S. traffic. Troubleshooting lives in the pixel docs.