Activity
gymgym records what people do in the app, so that the person who runs an instance can see what is used. The admin dashboard shows it as activity. This page says what is recorded, what is never recorded, who can read it and how to change it.
What is recorded
Section titled “What is recorded”An event is a name and a few small facts. The name says what happened, for example workout.finished. The facts are numbers, flags and words from fixed lists, for example sets: 18. Each event also has a time and the thing that acted: a browser (app), the gymgym CLI (cli), a personal API key (api), an AI assistant (mcp) or the server itself (server).
The server records these events:
- An account that is made (
account.created), each sign-in (auth.signed_in, with the method) and a guest that is linked to an account (account.linked). - Every change that succeeds, such as
workout.finished,routine.savedandcoach.proposal_applied.settings.updatednames the settings that changed and never their values. The tableMUTATION_EVENTSinpackages/api/src/events.tslists every change, and a test makes sure that no change is missing from it. - A change that fails (
api.failed, with the operation and the error code). - A message to the coach (
coach.message_sent, with the number of photos and files). A message that the coach refuses because the daily limit or the credit is used up iscoach.message_refused.
The app reports what the server cannot see. It reports that it was opened (session.started, and whether it runs from the home screen), each screen that a person opens (screen.viewed, as a route such as /routine/:id) and a workout that starts (workout.started).
These are not events: the autosave of a workout in progress, the live “training now” signal, the timers, and the admin tools (credit, invites and disabling an account). The audit log holds what an admin does with those tools. An admin who trains or uses the coach like anyone else makes events like anyone else. The coach is not a person. What it does for someone is not recorded as an action of that person.
What is never recorded
Section titled “What is never recorded”An event never holds what a person wrote or named. It holds no message to the coach, no note, no routine name, no exercise name, no weight and no email address. A screen is the pattern of a route, so the ids in the address are not kept.
Who can read it
Section titled “Who can read it”Only an admin can read events, in the admin dashboard. The dashboard shows how many people were active today, in the last 7 days and in the last 30 days, and a list of days. A day opens the events of that day, from every person. A person’s page opens the events of that person. You can filter a list by event name.
Each list of events that an admin reads is recorded in the audit log as list_events, against the person. A list of a day writes one row for each person on the page. A count writes no row, because it names no one. The days are UTC days, like the days of the coach spending list.
How long events are kept
Section titled “How long events are kept”gymgym keeps events for 90 days. The hourly cron job removes older events. When someone deletes their account, their events go with it. When a guest links an account, the events move to the account.
To change the time, set EVENTS_RETENTION_DAYS to a number of days from 1 to 365. To record nothing, set it to 0. The next hourly run also deletes the events that were already kept.
A person can turn it off
Section titled “A person can turn it off”Each person can turn the recording off for their own account. In the app, the person opens Settings, then Privacy, and turns off Usage data. From that moment, gymgym records nothing more of what this person does. This holds for a browser, the CLI, a personal API key and an AI assistant. gymgym also deletes the events that it kept until then.
If the person turns Usage data on again, gymgym records again from that moment. The deleted events do not come back.
The choice belongs to the account. The admin tools cannot change it for someone else. If a guest is linked to an account that turned the recording off, gymgym does not carry the events of the guest over to the account.
The app shows the switch only on an instance that records events. If an instance sets EVENTS_RETENTION_DAYS to 0, there is nothing to turn off, so the switch is not there.
Browsers that ask not to be tracked
Section titled “Browsers that ask not to be tracked”If a browser sends Global Privacy Control (Sec-GPC: 1) or Do Not Track (DNT: 1), gymgym records nothing for its requests, signing in included. The app does not report screens either.
One person can have at most 1,500 events in a UTC day. After that, gymgym keeps no more events of that person for the day. The limit protects the database from a client that is stuck in a loop.