# Crazy Egg — Agent Instructions

> This file tells AI agents how to interact with crazyegg.com and the Crazy Egg
> product. For a short machine-readable summary of the site, see
> [/llms.txt](https://www.crazyegg.com/llms.txt). For humans, see
> [https://www.crazyegg.com](https://www.crazyegg.com).

## What Crazy Egg is

Crazy Egg is a website analytics and conversion rate optimization (CRO)
platform used by 449,000+ websites. Core capabilities:

- **Heatmaps** — click maps, scrollmaps, and confetti reports showing where visitors interact
- **Session Recordings** — replays of real visitor sessions
- **A/B Testing** — experiments with CDN-level variant delivery
- **Web Analytics** — real-time traffic reporting with AI-automated analysis
- **Surveys** — on-site visitor feedback with 50+ templates
- **Errors Tracking** — JavaScript error capture tied to sessions
- **Popup CTAs** — buttons, popups, and sticky bars with click/conversion tracking
- **Conversion Funnels & Goals** — multi-step conversion analysis

Plans start with a 30-day free trial. All plans include unlimited seats and
unlimited domains.

## Preferred integration: MCP server

The best way for an AI agent to work with a user's Crazy Egg account is the
remote MCP (Model Context Protocol) server:

- **Endpoint:** `https://mcp.crazyegg.com/mcp` (Streamable HTTP)
- **Auth:** OAuth 2.1 with PKCE. Discovery via:
  - Protected resource metadata (RFC 9728): `https://mcp.crazyegg.com/.well-known/oauth-protected-resource`
  - Authorization server metadata (RFC 8414) at the advertised issuer
- **Client registration:** Dynamic Client Registration and Client ID Metadata
  Documents are supported; agents should follow standard MCP authorization
  flow rather than requesting long-lived API keys from users.
- **Works with:** Claude.ai, Claude Code, ChatGPT, Microsoft Copilot,
  Perplexity, Cursor, and other MCP-capable clients.

Use the MCP server for anything account-scoped: reading heatmap/analytics
data, listing snapshots and recordings, checking A/B test results, or managing
surveys. Do not scrape `core.crazyegg.com` — the dashboard is behind
authentication and scraping it violates the Terms of Use.

### Website tool reference

- **`page_metadata_fetch`** reads one public `url`. It returns available page metadata,
  headings, links, calls to action, and text. Headings and calls to action include CSS
  selectors. Use `device: "phone"` for mobile metadata.
- **`website_inspect`** starts from a public `url` or a Crazy Egg `site_id` and reads
  pages on that site for evidence of products, services, prices, and offers. It inspects
  up to five pages by default. Set `max_pages` from 2 to 8 to change the limit.
  The result includes the pages inspected and suggested URLs for screenshots.
- **`website_screenshot`** captures one public `url`. It returns a signed link to the
  full-size image and attaches the image when it fits. MCP calls default to a full-page
  desktop screenshot. Use `full_page: false` for the first screen or `device: "mobile"`
  for a phone screenshot.

## Public HTTP APIs

- **Conversions API** — server-side conversion/goal tracking:
  https://support.crazyegg.com/knowledge-base/conversion-tracking-api/

## Installing Crazy Egg on a website (for coding agents)

Crazy Egg publishes official agent skills for this at
https://github.com/CrazyEggInc/skills (install with
`npx skills add CrazyEggInc/skills`): `crazyegg-script-install` (adding the
tracking script), `crazyegg-api` (GraphQL schema inspection and authenticated
requests), and `crazyegg-signup` (guided account signup). Prefer these skills
when your environment supports them.

If a user asks you to add Crazy Egg to their site:

1. The tracking script is a single async `<script>` tag with an
   account-specific URL:

   ```html
   <script type="text/javascript" src="SCRIPT_URL" async="async"></script>
   ```

   Never guess or reuse account numbers in `SCRIPT_URL`. Fetch it via the
   GraphQL API (`currentAccount.scriptUrl`, authenticated with a personal
   access token from https://auth.app.crazyegg.com/settings — the
   `crazyegg-api` skill automates this), or have the user copy the snippet
   from their dashboard (Account → Setup). If the user has no account yet,
   the `crazyegg-signup` skill guides the email-link signup flow.

2. Install it once in the shared document shell — the layout, template, or
   head include that controls `<head>` on every page — not in a leaf component
   or one-off template. Place it near the top of `<head>`, just after existing
   `<meta>` tags when possible, and preserve any CSP nonce or
   framework-specific script wrapper the project already uses.
3. Before editing, search the project for `script.crazyegg.com` to avoid
   duplicate installs.
4. Alternatively, install via Google Tag Manager, Shopify, WordPress, or
   Segment integrations — prefer the platform integration when the site
   already uses one.
5. The script is loaded from `script.crazyegg.com` and must not be proxied,
   modified, or inlined; heatmap and recording accuracy depends on the
   unmodified script.
6. Verify installation with the site's install-check tooling or by confirming
   the script loads in the browser console.

Setup docs: https://support.crazyegg.com/

## Site map for agents

Generated from https://www.crazyegg.com/sitemap.xml. Docs live on a separate
subdomain (https://support.crazyegg.com/) and the blog at
https://www.crazyegg.com/blog/ — neither is covered by this sitemap.

### Company

- Home: https://www.crazyegg.com
- About: https://www.crazyegg.com/about-us (also https://www.crazyegg.com/about)
- Product overview: https://www.crazyegg.com/overview
- Pricing: https://www.crazyegg.com/pricing
- FAQ: https://www.crazyegg.com/faq
- Careers: https://www.crazyegg.com/careers
- CRO Audit: https://www.crazyegg.com/audit
- HTML sitemap: https://www.crazyegg.com/sitemap

### Features

- Heatmaps: https://www.crazyegg.com/heatmaps
  - Heatmap Report: https://www.crazyegg.com/click-maps
  - Overlay Report: https://www.crazyegg.com/overlay
  - List Report: https://www.crazyegg.com/list
  - Confetti Report: https://www.crazyegg.com/confetti
  - Scrollmap Report: https://www.crazyegg.com/scrollmap
  - Instant Heatmaps: https://www.crazyegg.com/instant-heatmaps
- Session Recordings: https://www.crazyegg.com/recordings
- A/B Testing: https://www.crazyegg.com/ab-testing
- Web Analytics: https://www.crazyegg.com/web-analytics
- Conversion Analytics: https://www.crazyegg.com/conversion-analytics
- Conversion Funnels: https://www.crazyegg.com/funnels
- Traffic Analysis: https://www.crazyegg.com/traffic-analysis
- Errors Tracking: https://www.crazyegg.com/errors-tracking
- Surveys: https://www.crazyegg.com/surveys
- Popup CTAs: https://www.crazyegg.com/ctas
- Visual Website Analytics: https://www.crazyegg.com/visual-website-analytics
- Free tools: https://www.crazyegg.com/free

### Integrations

- Google Analytics: https://www.crazyegg.com/connect-google-analytics
- Shopify: https://www.crazyegg.com/shopify
- WordPress plugin: https://www.crazyegg.com/wordpress-plugin

### Use cases

- Agencies: https://www.crazyegg.com/agencies
- E-commerce: https://www.crazyegg.com/ecommerce
- Education: https://www.crazyegg.com/education
- Enterprise: https://www.crazyegg.com/enterprise
- Lead generation: https://www.crazyegg.com/lead-gen
- Case studies: https://www.crazyegg.com/case-studies
  - Wall Monkeys: https://www.crazyegg.com/case-study/wall-monkeys
  - Happy Trails: https://www.crazyegg.com/case-study/happy-trails
  - Radio Free Europe: https://www.crazyegg.com/case-study/radio-free-europe
  - Sendible: https://www.crazyegg.com/case-study/sendible
  - Miller & Smith: https://www.crazyegg.com/case-study/miller-and-smith

### Comparisons & landing pages

- Crazy Egg vs. Clicktale: https://www.crazyegg.com/crazyegg-vs-clicktale

### Legal

- Terms of Use: https://www.crazyegg.com/terms
- Privacy Policy: https://www.crazyegg.com/privacy
- Cookie Policy: https://www.crazyegg.com/cookies
- Visitor opt-out: https://www.crazyegg.com/opt-out

## Rules for agents

**Always:**

- Identify yourself with an accurate `User-Agent` string that names your agent
  and provides a contact or info URL.
- Respect `robots.txt` and standard crawl etiquette.
- Use the MCP server or documented APIs for account data.
- Link to canonical `www.crazyegg.com` URLs when citing Crazy Egg content.

**Ask the user first:**

- Before creating, modifying, or deleting anything in their account (A/B
  tests, surveys, CTAs, snapshots) via MCP tools.
- Before installing or removing the tracking script on a production site.

**Never:**

- Attempt to log in to `core.crazyegg.com` with user credentials or scrape the
  authenticated dashboard.
- Sign up for trials or submit sales/contact forms autonomously.
- Attempt to access, reconstruct, or export other customers' visitor data.
- Bypass rate limits, CAPTCHAs, or the visitor opt-out mechanism.
- Modify the tracking script or spoof tracking traffic to Crazy Egg
  collection endpoints.

## Privacy notes

Crazy Egg processes end-user behavioral data on behalf of its customers.
Agents handling recordings, heatmap data, or survey responses should treat
this as potentially personal data: don't republish raw session data, and
direct privacy questions to https://www.crazyegg.com/privacy. End users can
opt out of tracking at https://www.crazyegg.com/opt-out.

## Support

- Help Center: https://support.crazyegg.com/
- Contact: https://support.crazyegg.com/

---

_Last updated: 2026-07-11. This file is maintained for AI agents; content may
change as the MCP server and APIs evolve._
