Skip to main content
What this builds. A tour of the ways to scope an analytics query and the simplest terminals. You’ll end up with. Event counts and scalar metrics for org-wide, by-type, and explicit-window scopes — with time always expressed as a .where(EventField.EVENT_START_TIME …) predicate.

Expected output

Datetimes must be timezone-aware — pass datetime.now(timezone.utc), not a naive datetime, or the SDK raises AnalyticsInvalidQuery.

See also

Async pairs

The same surface with aquery + acount / amean.

Filters & overloads

Every way to refine a query with .where(...).

Reference

Every public method.