Three different things look like “no events”, and each has a different fix. Find yours in order.
1. Which key are you looking with?
| You sent with | Look in | Expect them |
|---|---|---|
A test key (togo_pkt_…) |
Events → Live View, or verify_tracking |
Within seconds |
A live key (togo_pkl_…) |
Reports, the AI analyst, get_trend |
After the next processing run, a few hours later |
Test-key events never appear in reports, by design. Live-key events never appear in the last hour, because they have not been processed yet. If either is what you are seeing, nothing is broken: When your data shows up.
2. Is the SDK sending at all?
Open the browser console, or your server’s log, and look for lines starting with [togo]. The
SDK never throws, so its errors only appear there:
- “writeKey is not a write key”, “writeKey is a SECRET key” or “No events will be captured” — the key is missing or wrong. See The write key was rejected.
- A property or limit named in the message — the event was refused for that reason. See Event diagnostics.
- Nothing at all, from the browser — check the network tab for requests to
in.togohq.ai. None meansinit()ortrack()never ran: the code path did not execute, or ran on the server during rendering, where the browser SDK does nothing. - Nothing at all, from a serverless function — the function returned before the batch left. See Server events are missing.
3. Is consent holding the events?
If you started the SDK with consent: 'pending', nothing is sent until your banner calls
setConsent('granted'), and under 'denied' nothing is ever sent. Accept the banner and check
again (Connect a consent banner).
4. Is it the right project?
Each write key belongs to exactly one project. If you are looking at a different project from the
one whose key is in your code, every number is zero. Ask your agent “which Togo project is this
app, by the write key in the code?” — it calls list_projects and matches the key.
Still stuck
Ask your agent to run verify_tracking with the
events you expect: it names what arrived, what did not, and what production would do with each.