Checkpoint Docs
Cookbooks

Detect: Pixel Quick Start

Add AI agent detection to any website in 5 minutes with zero code

Goal

Add AI agent detection to your website using the Checkpoint Marketing Pixel. By the end of this cookbook, you'll have:

  • Real-time detection of AI agents (ChatGPT, Claude, Perplexity, etc.)
  • Bot traffic visibility (Googlebot, scrapers, crawlers)
  • Analytics flowing to your Checkpoint dashboard

No code required. The Pixel works with any website — WordPress, Shopify, static sites, or custom apps.

Prerequisites

  • A Checkpoint account (sign up free)
  • A website you control
  • Access to add scripts (directly or via tag manager)

Time Estimate

5 minutes (with Google Tag Manager) or 10 minutes (direct install)


Steps

Create a Checkpoint Project

  1. Log into your Checkpoint dashboard
  2. Click New Project
  3. Enter a name for your project (e.g., "Marketing Site")
  4. Select Detect as the primary mode
  5. Click Create

Get Your Project ID

After creating your project:

  1. Navigate to Settings → Deployment
  2. Copy your Project ID — it looks like proj_abc123def456
Keep this ID handy. You'll need it for the next step.

Install the Pixel

Choose your installation method:

Recommended for marketing teams. No code deployment needed after the one-time template install.

Install the AgentShield template (one-time per container)

  1. Open the AgentShield template in the GTM gallery (publisher: Know-That-Ai)
    • Or in GTM: Templates → Tag Templates → Search Gallery, search AgentShield
  2. Click Add to Workspace and accept the permissions prompt

Create the tag

  1. Go to Tags → New → Tag Configuration → Custom → AgentShield Pixel
  2. Enter your Project ID
  3. Set Triggering to All Pages
  4. Click Save, then SubmitPublish

Adding user identification (matching your internal user IDs in the dashboard)? See the full GTM + Next.js integration guide — it covers dataLayer variables and the user identification tag.

If your org disables Community Templates (fallback)

Use a Custom HTML tag instead:

  1. Tags → New → Custom HTML, paste:
<script>
  (function () {
    var as = document.createElement('script');
    as.type = 'text/javascript';
    as.async = true;
    as.src = 'https://kya.vouched.id/pixel.js';
    as.setAttribute('data-project-id', 'YOUR_PROJECT_ID');
    var s = document.getElementsByTagName('script')[0];
    s.parentNode.insertBefore(as, s);
  })();
</script>
  1. Replace YOUR_PROJECT_ID, set Triggering to All Pages, Save, Submit → Publish

The Custom HTML approach exposes only data-project-id and data-debug. The template gives you finer-grained controls (session timeout, batch size, fingerprinting toggle, DNT honoring) as configurable fields.

For developers adding the pixel directly to HTML.

Add this script in your HTML <head> section:

<!-- Detect Pixel -->
<script>
  (function () {
    var as = document.createElement('script');
    as.type = 'text/javascript';
    as.async = true;
    as.src = 'https://kya.vouched.id/pixel.js';
    as.setAttribute('data-project-id', 'YOUR_PROJECT_ID');
    var s = document.getElementsByTagName('script')[0];
    s.parentNode.insertBefore(as, s);
  })();
</script>
<!-- End Detect Pixel -->

Replace YOUR_PROJECT_ID with your actual Project ID.

For frameworks:

// Next.js (app/layout.tsx)
import Script from 'next/script';

export default function Layout({ children }) {
  return (
    <html>
      <body>
        {children}
        <Script
          src="https://kya.vouched.id/pixel.js"
          data-project-id={process.env.NEXT_PUBLIC_CHECKPOINT_PROJECT_ID}
          strategy="afterInteractive"
        />
      </body>
    </html>
  );
}

Using a plugin (no code needed):

  1. Install the "Insert Headers and Footers" plugin (or similar)
  2. Go to Settings → Insert Headers and Footers
  3. In the Footer section, paste:
<!-- Detect Pixel -->
<script>
  (function () {
    var as = document.createElement('script');
    as.type = 'text/javascript';
    as.async = true;
    as.src = 'https://kya.vouched.id/pixel.js';
    as.setAttribute('data-project-id', 'YOUR_PROJECT_ID');
    var s = document.getElementsByTagName('script')[0];
    s.parentNode.insertBefore(as, s);
  })();
</script>
<!-- End Detect Pixel -->
  1. Replace YOUR_PROJECT_ID with your actual Project ID
  2. Click Save

Using theme editor:

  1. Go to Appearance → Theme File Editor
  2. Select header.php (or add to <head> section)
  3. Add the script in the <head> section
  4. Click Update File
  1. Go to Online Store → Themes
  2. Click Actions → Edit code
  3. Open theme.liquid
  4. Find the closing </body> tag
  5. Add the following just before it:
<!-- Detect Pixel -->
<script>
  (function () {
    var as = document.createElement('script');
    as.type = 'text/javascript';
    as.async = true;
    as.src = 'https://kya.vouched.id/pixel.js';
    as.setAttribute('data-project-id', 'YOUR_PROJECT_ID');
    var s = document.getElementsByTagName('script')[0];
    s.parentNode.insertBefore(as, s);
  })();
</script>
<!-- End Detect Pixel -->
  1. Replace YOUR_PROJECT_ID with your actual Project ID
  2. Click Save

Verify Installation

  1. Visit your website in a new browser tab
  2. Open browser DevTools (F12 or Cmd+Shift+I)
  3. Go to the Network tab
  4. Filter by "kya" or "pixel"
  5. Refresh the page
  6. You should see a request to kya.vouched.id/pixel.js
If you see a 200 OK response, the Pixel is working.

View Your First Detections

  1. Return to your Checkpoint dashboard
  2. Select your project
  3. Go to Analytics
  4. Wait up to 60 seconds for data to appear

You'll see:

  • Detection breakdown by class (human, ai_agent, bot)
  • Traffic timeline with detection events
  • Top agents identified on your site

Verify It's Working

Quick Check

Open your browser console and run:

// Check if the pixel loaded
document.querySelector('script[src*="kya.vouched.id"]') ? 'Pixel loaded!' : 'Pixel not found';

Test with a Bot User-Agent

Use curl to simulate a bot request:

curl -A "Mozilla/5.0 (compatible; GPTBot/1.0; +https://openai.com/gptbot)" \
  "https://yoursite.com"

Then check your dashboard — you should see an ai_agent detection within seconds.


Troubleshooting

Pixel Not Loading

SymptomCauseFix
No network requestScript not addedRe-check installation steps
404 errorWrong Project IDCopy ID from dashboard again
Blocked requestAd blockerDisable ad blocker or use server-side
CSP errorContent Security PolicyAdd kya.vouched.id to script-src

No Detections in Dashboard

  • Wait 60 seconds — Data takes a moment to appear
  • Check Project ID — Must match exactly
  • Verify GTM published — Unpublished changes won't work
  • Check for caching — Clear CDN cache if applicable

Content Security Policy (CSP)

If your site uses CSP, add this to your script-src directive:

Content-Security-Policy: script-src 'self' https://kya.vouched.id;

What You Learned

  • How to create a Checkpoint project
  • How to install the Marketing Pixel via GTM, direct install, WordPress, or Shopify
  • How to verify the Pixel is working
  • How to view detection data in the dashboard

Next Steps

Now that you have detection running, consider:

GoalNext Cookbook
Need more detection signalsBeacon Integration
Want to block detected agentsGateway Setup
Need server-side detectionMiddleware Detection
Integrate with Google AnalyticsGA4 Integration