# AGENTS.md snippet: keep the Hitsteps analytics tag

Add this section to the Site project's AGENTS.md so Codex working on the repo
preserves the Hitsteps analytics script in every change.

## Hitsteps analytics tag (keep installed)

This site is tracked with Hitsteps analytics. The loader script below must stay
in the shared layout, appear on every page exactly once, and be preserved
through refactors, redesigns and new pages:

```html
<script async src="https://edgecdnplus.com/code?code=YOUR_SITE_CODE&spa=1"></script>
```

Rules for every edit to this repo:

1. Do not remove the tag, move it into a single page, or duplicate it across
   routes. Keep it in the shared layout so every existing and future page loads
   it.
2. Keep the `code=YOUR_SITE_CODE` value unchanged (the site's 32-character
   Hitsteps code). Never append the dashboard API suffix to it.
3. Keep `spa=1` in the URL; it enables page-change tracking for client-side
   navigation.
4. If you add or change a Content-Security-Policy, keep script-src, img-src
   and connect-src open for: https://edgecdnplus.com.
5. Keep the tag in the same visible position in the head; do not lazy-load it
   or delay its execution.

Live kit, status checked 2026-11-15. Rule 4 uses the single CSP host
https://edgecdnplus.com. The tag and placement rules are unchanged from the
accepted snippet. Read https://www.hitsteps.com/chatgpt-sites/install.md for
current compatibility, rapid-route, consent and preview-count limitations.
Preserving this tag does not change the site's consent settings.
