The tracking snippet is a small script that tells aeoora when a visitor arrives from an AI assistant. It does not use cookies by default. This guide shows how to add it.
Before you begin
You need admin or manager access to the brand and the ability to edit your site’s HTML head or add a script through your CMS or tag manager.
Get your tag
- Open AI Referral Traffic and use Connect on the tracking snippet card, or open Brand Settings and go to Tracking.
- Copy the tag shown under Use this tag. It carries your brand’s unique code.
The tag looks like this, with your own code in place of the placeholder:
<script src="https://api.aeoora.com/t.js" data-t="YOUR-CODE" defer></script>
Add it to your site
- Paste the tag inside the
<head>of every page you want to measure. - Publish the change.
- Visit your site once, then return to AI Referral Traffic.
On a CMS, paste it into your theme’s header or a site-wide code field. In Google Tag Manager, add it as a custom HTML tag that fires on all pages. On WordPress, you can also connect the free plugin to aeoora Cloud, and it loads the snippet for you. See the WordPress plugin guide.
Check that it works
Once aeoora sees the snippet, the Tracking code not detected message goes away and the data sources strip shows it as connected. Visits then appear as they happen. An AI visit is a visitor who arrives from an assistant such as ChatGPT or Perplexity, so you will not see one until a real person clicks through.
Shopify stores
Shopify is not a live aeoora integration yet, but visit tracking works today. Add the snippet to your theme’s theme.liquid file. To follow orders, add the customer events pixel from Brand Settings under Tracking as a custom pixel in Shopify admin. It respects Shopify’s Customer Privacy API for consent.
Privacy and consent
- AI visits are counted without cookies by default.
- If you turn on conversion tracking, the snippet stores a visitor id in the browser, and you choose whether it waits for consent. See Track conversions from AI visits.
- Form contents are never sent.
Troubleshooting
- Still not detected: confirm the tag is in the live page source, and clear any page cache.
- Ad blockers: some may block the script for your own visits. Test in a clean browser profile.
- Changed a setting: copy the tag again, because it carries your choices.
Tip: Add the tag to every page, not only the homepage. AI assistants often link straight to deep pages.