Overview
A strong analytics setup starts with the decisions you want to make, not the SDK calls. This guide helps you choose events, properties, and auto-event settings so you can answer questions about acquisition, activation, engagement, and retention for agentic and AI-native products.The two pillars of data
Trodo builds user profiles from:1. Events (what happened)
Actions in your product—captured automatically where enabled, and explicitly everywhere that matters:| Event type | Examples | Why track it |
|---|---|---|
| Navigation | Page views, deep links into a run | Content and entry-point performance |
| Product usage | Prompt sent, agent run started, tool approved | Feature adoption and workflow health |
| Conversions | Signup, subscription, export completed | Funnel progression |
| Engagement | Scroll, time on task, session depth | Quality of experience |
2. User properties (who they are)
Stable traits and segments:| Property type | Examples | Why track it |
|---|---|---|
| Identity | user_id, email (via identify / people) | Return visits and support |
| Context | Plan, role, workspace, environment | Segmentation |
| Product state | Agent mode, model choice, integration count | Power users vs. evaluators |
| Lifecycle | Signup date, activation flags | Cohorts and retention |
Planning your implementation
Step 1: Define your key questions
Acquisition
Acquisition
- Which channels drive signups and activated accounts?
- Which landing pages lead to first successful agent run?
- How does paid vs. organic compare for qualified trials?
Activation
Activation
- What share of new users complete the “aha” workflow in day one?
- How long from signup to first value event?
- Where do users stall in onboarding or templates?
Engagement
Engagement
- Which features correlate with weekly active use?
- How often do users run agents vs. only browse?
- What predicts expansion or seat growth?
Quality & trust
Quality & trust
- Where do users retry, edit prompts, or cancel runs?
- Which error types are most common after a release?
- How does satisfaction proxy (e.g. thumbs, export) trend by cohort?
Step 2: Map questions to events
Question: “Which campaign drives the most activated accounts?” Eventspage_viewwith UTM (auto when auto-events are on)signup_completed(custom)agent_run_succeededor your chosen activation event (custom)
utm_source,utm_medium,utm_campaign(auto when present on URLs)plan,role(viapeople.setafter identify)
Question: “Where do users drop between starting a run and a successful outcome?” Events
agent_run_startedtool_call_requested/tool_call_completed(as appropriate)agent_run_succeeded/agent_run_failed
workflow_id,template_id,model,surface(web vs. embed)
Step 3: Choose auto-events
Auto-events are off until you setauto-events="true" (or enable them in code). Enable the bundle, then disable what you do not want:
| Auto-event | Disable if… |
|---|---|
text_selection / copy_action | Clipboard or selection is sensitive |
rage_click / dead_click | You only want raw element_click |
page_performance | You already capture Web Vitals elsewhere |
js_error / network_error | Another pipeline owns client errors |
Step 4: Plan custom events
Step 5: Identify and set traits
At login or account creation:Naming conventions
Use consistentsnake_case event and property names:
- ✅ Good
- ❌ Avoid
- Use
snake_case:workflow_id,template_id,retry_count - Prefer stable IDs over display strings when breaking down in reports
Example event sets
Agent / copilot app
Automation / builder SaaS
AI-enabled classic SaaS
Implementation checklist
Next steps
Quickstart
Start sending data
Installation
CDN, npm, and GTM