Choose Your Integration Method
Choose how to collect website, mobile, backend, and AI agent activity.
Choose a method based on where the activity happens and which reports you need. You can combine methods; each sender must use the correct Tenant ID, Source ID, and active collection URL from Setup.
Compare collection methods
| Method | When and how to use it |
|---|---|
| Web tracker | Collect website page views, scrolls, and outbound clicks automatically. Add business events explicitly. |
| Mobile HTTP API | Send app activity from iOS, Android, or a cross-platform app. Implement event triggers, payloads, timestamps, and session IDs. |
| Backend API | Send confirmed payments, CRM leads, and server-side actions. Preserve available session and identity context. |
| AI Visibility collection | Measure agent and crawler requests. Forward original request metadata from server middleware or a CDN. |
AI Visibility collection uses /agent-events. Website, mobile, and backend business events use /collect. Sending one type does not replace the other.
Common combinations
Website analytics: install the web tracker, verify page views, then add the business events that matter to your team.
Web commerce with server-confirmed purchases: use the tracker for browsing and your backend for confirmed purchases. Decide which system sends each purchase so the same business action is not intentionally sent twice. Carry a stable transaction ID and the available collection context; a server event without session context is not automatically linked to a browser visit.
Mobile app: implement the mobile request contract and reuse one session UUID for events in the same app session. Map your existing event plan to Hardal names and parameters. HTTP event ingestion does not by itself provide install attribution or an MMP integration.
Website plus AI Visibility: install the tracker and server-side agent forwarding. This measures human browser activity and agent requests through separate collection flows.
Shopify: open Setup → Tracker → Shopify and follow the generated installation flow. Check the events already sent before adding custom tracking.
After choosing
- Create or select the appropriate source.
- Copy its generated identifiers and active collection URL from Setup.
- Follow the method-specific guide and verify incoming data.
- Add your event plan, then inspect the events and reports.
The Analytics API reads existing report data. It is separate from these collection methods.