Skip to content

Events_

Events are the records every Appwrite Analytics metric is built from. Learn which events the tracking helpers send, how custom events differ, and what Appwrite adds to each event.

3 min read

Raw

An event is one thing that happened in your app: a page was viewed, a link was clicked, a purchase completed. Every figure on an analytics dashboard, from visitors to bounce rate, is calculated from the events a property receives.

Each event has a name and the URL it happened on. It can also carry a referrer, the viewport width, scroll depth, engagement time, and custom props.

Automatic events

The tracking helpers in the Web and Flutter SDKs send these events for you.

EventSent byWhen
pageviewWebA page loads or the route changes
outbound_linkWebA visitor clicks a link to another site
file_downloadWebA visitor clicks a link to a file, once download tracking is on
scroll_depthWebThe visitor leaves a page or changes route after scrolling, with how far they scrolled
engagement_timeWebThe tab is hidden, the route changes, or the page unloads, with the seconds the page was visible
screen_viewFlutterA named route is pushed, popped back to, replaced, or removed
app_backgroundedFlutterThe app moves to the background, with the seconds it was in the foreground
app_foregroundedFlutterThe app returns to the foreground

For each helper's options, see Track a website and Track a Flutter app.

Custom events

Any event with a name of your own is a custom event, such as signup_completed or invite_sent. The Custom events card on the dashboard lists them, separate from the automatic events. See Track custom events.

pageview and Flutter's screen_view are the two names Appwrite treats differently. Both count as views: they count toward Pageviews, Views per visit, and Bounce rate, and set each visit's entry and exit pages. Every other event counts toward visitors, visits, and events, but not pageviews. See What a visit records.

Where events come from

Events from browsers and apps need no API key. Appwrite accepts one only when its origin passes two checks: it matches a Web app's hostname or a Flutter app's platform under Apps in your project, and the property's allowed origins include it.

What Appwrite adds

When an event arrives, Appwrite adds details it works out from the request and the event's fields:

  • Page: the path and hostname of the URL, without the query string and fragment.
  • Traffic source: the referring site, the channel, and UTM parameters. See Traffic sources.
  • Location: country, region, and city, from the IP address.
  • Technology: browser, operating system, and device from the user agent, and a screen size category from the viewport width.
  • Bot details: whether a bot sent the event, and which one. See Bots and AI traffic.
  • Visitor and visit: which visitor sent the event, and which visit it belongs to. See Visitors and sessions.

Events usually appear on the dashboard within a few seconds.

Was this page helpful?

Share what worked or what we should fix. Once approved, our agents automatically apply suggested updates to the docs.