GetIntel script and WordPress plugin
Track AI visitors and AI crawlers without Google Analytics or Cloudflare, using a one-line visitor tag and a small server script, or one WordPress plugin for both.
No Google Analytics or Cloudflare? GetIntel’s own scripts cover both halves of AI traffic. Find your site key in Integrations → GetIntel script.
AI visitors: the visitor tag
Section titled “AI visitors: the visitor tag”One line of JavaScript that only reports visits arriving from AI assistants (ChatGPT, Perplexity, Gemini, Claude, Copilot). No cookies, no personal data, and it loads after your page.
Paste in the <head> of every page, or once in your site-wide header:
<script async src="https://ingest.getintel.ai/v1/ai.js" data-site="YOUR_SITE_KEY"></script>Tags → New → Custom HTML, paste the tag above, set the trigger to All Pages, then Save → Submit.
In app/layout.tsx, inside <body>:
import Script from 'next/script'
<Script src="https://ingest.getintel.ai/v1/ai.js" data-site="YOUR_SITE_KEY" strategy="afterInteractive" />Online Store → Themes → Edit code → theme.liquid, paste the tag just before </head> and save.
To test, open your site in a private window with ?utm_source=chatgpt.com added to the address. It appears in GetIntel within a few minutes.
AI crawlers: the server script
Section titled “AI crawlers: the server script”AI bots don’t run JavaScript, so this part runs on your server. It reports only requests from AI bots, after the page is served, so it never slows your site.
Download the GetIntel plugin, then in WordPress go to Plugins → Add New → Upload Plugin, choose the zip, install and activate. Then Settings → GetIntel and paste your site key. The plugin covers AI crawlers and AI visitors, so you don’t need the tag as well.
npm install @getintel/agentimport { getintel } from '@getintel/agent/next'
export const middleware = getintel({ siteKey: 'YOUR_SITE_KEY' })On Next.js 16 the file is proxy.ts and the export is proxy: export const proxy = getintel({ siteKey: 'YOUR_SITE_KEY' }).
npm install @getintel/agentconst { getintel } = require('@getintel/agent/express')
app.use(getintel({ siteKey: 'YOUR_SITE_KEY' }))composer require getintel/agent<?phprequire __DIR__ . '/vendor/autoload.php';\GetIntel\Agent::track('YOUR_SITE_KEY');