You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -342,6 +379,7 @@ Match the user's question to the right call(s):
342
379
| "Events per country" |`query --group-by country --metrics event_count,unique_users`| Country breakdown |
343
380
| "Pages with pricing in the URL?" |`query --filter '[{"field":"properties.path","op":"contains","value":"pricing"}]' --group-by event`| Substring match on properties |
344
381
| "How many sessions this week?" |`query --metrics session_count --days 7`| Count distinct sessions |
382
+
| "Are there JS errors?" |`events --event '$error'` or `breakdown --property message --event '$error'`| Error log or grouped by message |
345
383
346
384
For any "how is X doing" question, **always call `insights` first** — it's the single most useful endpoint. For real-time "who's on the site right now", use `live`. For any specific question that the pre-built commands don't directly answer (filtering by country, substring matching, combining multiple filters), use `query`.
347
385
@@ -536,7 +574,7 @@ Proactively flag — don't wait to be asked:
536
574
-**Spike**: any metric >2× its previous period → "unusual surge, check referrers"
537
575
-**Drop**: any metric <50% of previous → "significant decline, worth investigating"
538
576
-**Dead project**: zero `page_view` events → "⚠ no traffic detected"
539
-
-**Errors**: any `error` events in the window → surface the `message` property
577
+
-**Errors**: any `error`or `$error`events in the window → surface the `message` property
0 commit comments