Skip to content

Auth

Analytics

See what each signed-in user does in your sites, apps, and AI agents with Appwrite Analytics, from the Analytics tab of a user in Auth.

3 min read

Raw

Appwrite Analytics can link the events your sites, apps, and AI agents send to the users in Auth. Each user then gets an Analytics tab with their activity across every property in the project: how often they come back, which pages or screens they open, and which events they send.

Events record the user ID only, never an email address or a name. Anonymous visitors aren't affected.

Identify signed-in users

User identification card in a property's Settings tab with Identify signed-in users turned on
User identification card in a property's Settings tab with Identify signed-in users turned on

  1. In your project, open Analytics and select a property. To create one, see Properties.
  2. Open the Settings tab.
  3. Under User identification, turn on Identify signed-in users. The change saves right away.

From then on, each event the property receives from a signed-in Appwrite session carries that user's ID. Events received before the change stay anonymous. Turn the setting on only if your privacy policy covers linking analytics to user accounts.

Your server can also attach a user ID to the events it sends with an API key. See Track events from your server.

Read a user's activity

Analytics tab of a user in Auth with events, visits, views, active days, last seen, events per day by property, and the Properties table
Analytics tab of a user in Auth with events, visits, views, active days, last seen, events per day by property, and the Properties table

Open Auth, select a user, and open the Analytics tab. It covers the last 30 days.

  • Events, Visits, and Pageviews, each with the change from the previous 30 days. Pageviews reads Screen views when every listed property is a Mobile property, and Views when Mobile properties are mixed with others. When every listed property is an Agent property, there's no views count.
  • Active days: the days with at least one event from the user.
  • Last seen: when the user was last active, and in which property.
  • Activity: the user's events per day, split by property.
  • Properties: each property the user was active in, with their events, visits, views, and when they were last active.

A property is listed when it identifies signed-in users, or when your server sent events with this user's ID.

Property details

Storefront row expanded in the Properties table with the user's pages, events, sources, locations, browsers, and operating systems
Storefront row expanded in the Properties table with the user's pages, events, sources, locations, browsers, and operating systems

Click a property in the Properties table to see the user's activity there. The lists depend on the property's type:

  • Web: Pages, Events, Sources, Locations, Browsers, and Operating systems.
  • Mobile: Screens, Events, Locations, Devices, Operating systems, and OS versions.
  • Agent: Events, Models, and Tools.

Events lists the custom events the user sent, such as add_to_cart. See Track custom events.

Open a user in a property

A user's page in the Storefront property with visits, pageviews, events, last seen, their top pages, and their custom events
A user's page in the Storefront property with visits, pageviews, events, last seen, their top pages, and their custom events

Click the arrow at the end of a property's row to open the user's page in that property. It has its own date range, and shows the user's visits, events, when they were last seen, and their custom events. On Web and Mobile properties, it also shows their views and their top pages or screens.

From the dashboard

Users card on a property's dashboard ranking signed-in users by visits, next to the Event properties card
Users card on a property's dashboard ranking signed-in users by visits, next to the Event properties card

The Users card on a property's dashboard ranks signed-in users by visits. Click a user to open their page in that property. The Users metric at the top of the dashboard counts distinct signed-in users. See Metrics.

Was this page helpful?

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