Examples
תוכן זה אינו זמין עדיין בשפה שלך.
The Agent Analytics examples repository contains working product surfaces that show how to integrate Agent Analytics without inventing fake product flows.
Use it when you want to see the tracker in a real codebase instead of reading another isolated snippet.
What the examples repo is for
Section titled “What the examples repo is for”Each example is meant to answer three practical questions:
- Where does the tracker snippet live in this framework?
- Which events should be tracked for the product flow that actually exists?
- Which tracker features should be omitted because the product does not honestly have that flow?
That third point matters. A good example should not fire purchase, checkout, signup, or identify events unless the product really has purchase, checkout, account, or authentication behavior.
Current examples
Section titled “Current examples”| Example | Stack | Product surface | Primary conversion | What it demonstrates |
|---|---|---|---|---|
| Astro Velvet Paw | Astro | Ecommerce-style affiliate storefront | Outbound merchant click | Tracker snippet placement, automatic traffic/session fields, declarative CTA events, section impressions, runtime window.aa.track(...) events, client-side experiment assignment, outbound merchant attribution, and tests that prevent fake checkout/cart/purchase tracking. |
Start from Astro Velvet Paw
Section titled “Start from Astro Velvet Paw”Astro Velvet Paw is a simple storefront for a fictional premium cat-sneaker brand. It looks and behaves like a normal ecommerce/affiliate page: product cards, prices, ratings, size guidance, add-ons, recommendations, support content, and merchant handoff links.
The README in the example explains exactly what was plugged in:
- tracker snippet location and configuration
- automatic signals the tracker collects without extra custom events
- declarative click tracking with
data-aa-event - section exposure tracking with
data-aa-impression - runtime events for state that only exists in the browser
- client-side experiment exposure
- outbound merchant-click conversion tracking
- events and flows intentionally omitted
- tests that lock the integration behavior
Open it here:
Ask your agent to use the example
Section titled “Ask your agent to use the example”If your agent can read GitHub repositories, give it this prompt:
Use the Agent Analytics examples repo as a reference: https://github.com/Agent-Analytics/agent-analytics-examples
Start with examples/astro-velvet-paw. Show me where the tracker snippet, data-aa-event attributes, data-aa-impression sections, runtime window.aa.track calls, and tests live. Then adapt the same pattern to my product without adding fake checkout, purchase, signup, or identify events.