Skip to main content

Sensor docs

Track AI answer referrals with the browser pixel

The browser pixel can measure recognized AI answer referral clicks on sites that permit third-party scripts. It uses a public, hostname-bound workspace identifier and needs no secret API key. Published-site verification is part of the install.

1. Copy your generated pixel

Open AI Traffic while signed in to copy the snippet with your workspace identifier filled in. That identifier is safe in page source and cannot access your account.

<script async src="https://foglift.io/pixel.js" data-foglift-brand="YOUR_WORKSPACE_ID"></script>

2. Add it to every page

Use the site-wide Head field for your hosted platform:

Webflow
Paste into site-wide Custom Code in the Head.
Click-by-click Webflow walkthrough
Framer
Paste into Custom Code at the end of the Head.
Click-by-click Framer walkthrough
Squarespace
Paste into Code Injection in the Header.

Webflow and Framer have step-by-step walkthroughs above. For any other builder, do not place JavaScript in a CSS field or a single-page embed. Publish the change site-wide so any landing page can record a recognized referral.

3. Verify the placement

  1. Publish the site and open a public page in a private browser window.
  2. Confirm pixel.js returns successfully in the browser Network panel.
  3. Confirm a recognized test referral sends a successful cross-origin POST to Foglift.
  4. Return to AI Traffic. The first recognized AI answer referral appears when a visitor arrives from a supported AI answer surface.

A successful script load proves the placement is live. It does not create a referral event and does not prove that an AI engine cited, indexed, or recommended the site.

Open AI Traffic

Need crawler-request visibility?

Use the install path that runs where HTTP requests are visible.