DRAFT — Version 1.0
Privacy Policy for VisualMaths. This page describes the information the application processes, how it is used, and your choices and rights.
Version: 1.4-draft · Last updated: 2026-11-17
Data inventory
| Category | Information | Purpose | Storage and recipients | Retention |
|---|---|---|---|---|
| Google account and session | Verified Google email address, profile name and profile image URL; an encrypted Auth.js JWT session cookie. The cookie is HttpOnly and SameSite=Lax, Secure in production, and has a 30-day maximum age. | Sign-in, protect lesson routes, and associate premium features with the signed-in account. | The session cookie is held by your browser. The app records the email and name in Supabase when a premium account or purchase request is created. Google handles OAuth sign-in. | The session cookie expires after at most 30 days. |
| Premium purchase requests | Account email, required payer name, selected package, amount, M-Pesa confirmation code, phone number, request status, administrator notes and review timestamps; accepted Terms and Privacy versions, acceptance time and a truncated user-agent string. | Match and review a manually submitted M-Pesa payment, award the requested package, prevent duplicate confirmation codes, and retain evidence of consent. | Stored in Supabase and sent to the configured administrator by email through Resend. The app does not connect to or initiate payments through M-Pesa. | Stored for a period of 12 months after the last activity. |
| Token balance and AI usage metadata | Token ledger entries and AI usage records may include account email, feature, token amount, reference, model name, input/output character counts, status and timestamp. Prompts and generated answers are not stored in these usage records. | Maintain balances, process charges/refunds, enforce usage limits and diagnose service operation. | Stored in Supabase. Server-side AI requests are sent to Google Gemini for processing; only usage metadata, not prompt or answer text, is stored by VisualMaths. | Stored for a period of 12 months after the last activity. AI usage records are not retained beyond that period. |
| Token notification emails | For a token grant, the account email, first name if known, token amount and balance after the grant are used to send a notice. A per-account email opt-out preference and per-grant delivery status and timestamps are stored; the email body is not stored by the app. | Notify account holders when tokens are added and respect requests to stop these notifications. | The opt-out preference and delivery status are stored in Supabase. Email is sent through Resend using the configured VisualMaths sender and feedback reply address. | The app does not currently define a separate retention period for token grants or their notification status. |
| Feedback | Feedback category, optional rating and message, page URL, locale, browser user-agent string, screen dimensions, optional reply-to address, optionally your account email, and an optional Sentry event ID for a recent error. The request IP is used transiently by an in-memory rate limiter and is not written to the app database. | Review and respond to feedback, diagnose reported issues using the optional event ID, and limit repeated submissions. | Sent by email through Resend to the configured feedback recipient. The feedback route does not write feedback submissions to the app database. | Stored for a period of 12 months after the last activity. |
| Lesson and search requests | Requests for protected lesson and search-index content, including the authenticated identity claims needed by the server-to-server API request. | Provide signed-in learning content and search results. | The browser requests content from the VisualMaths web app, which proxies protected requests to the Render-hosted API. Standard hosting and server logs may record request metadata. | Not retained beyond the normal hosting and server log retention periods. The app does not store lesson or search content in its own database. |
| Workspace and whiteboard documents | Drawings, text, graph objects and other notebook/whiteboard document data under `visualmaths.book.v1`, `visualmaths.book.v1.backup`, `visualmaths.whiteboard.v1` and `visualmaths.whiteboard.v1.backup`. | Save and restore your workspace on the current browser and device. | Stored in that browser’s localStorage; not uploaded to the VisualMaths account by the workspace save feature. | Until you clear browser site data, remove the stored document, or replace it with later workspace edits. |
| Browser preferences | Theme (`visualmaths-theme`), background animation (`visualmaths-space-background`), ribbon collapse (`visualmaths.workspace.ribbonCollapsed`), manual dismissal (`visualmaths.workspace.manual-dismissed.v1`), assistant position (`visualmaths.aiAssistant.position.v1.workspace` and `.learn`), assistant greeting dismissals (`visualmaths.aiAssistant.greetingDismissals.v1`) and leave-prompt dismissal timestamps (`visualmaths.leave-prompt.dismissed.lesson.v1` and `.workspace.v1`). | Remember presentation choices, assistant placement and whether optional guidance should be shown again. | Stored in browser localStorage and used by the app on that device. | Until you clear browser site data or the relevant preference is replaced. |
| Learning progress | For signed-in users only: an opaque Auth.js account ID, lesson slugs and areas, first and last view timestamps, completion timestamps, status, view counts and opaque request IDs used to prevent duplicate view counts. Progress is not saved in browser localStorage or a progress-specific cookie. | Show per-lesson completion, area totals and the most recently viewed unfinished lesson. | Stored in the Supabase progress table and accessed only by the authenticated VisualMaths server/API. No progress is sent to Google Analytics 4. | Kept until you use Reset my progress on the Learning progress page or the linked progress account row is deleted. |
| Subject exam attempts | For signed-in users only: account email, subject and attempt IDs, attempt start/submission timestamps, submitted answers, total and per-question scores, per-lesson results, and whether paid solutions have been revealed. Correct answers and worked solutions are not included in public exam data or unrevealed attempt responses. | Save and resume an attempt, mark answers, show the result and lesson breakdown, list attempt history, and provide worked solutions after a successful token charge. | Stored in the Supabase subject_exam_attempts table with row-level security enabled and access restricted to the server service role. Not sent to Google Analytics 4. | Kept until you use Reset my progress on the Learning progress page or the linked premium account row is deleted. There is no separate exam-attempt retention period at present. |
| Google Analytics 4 | When configured and enabled, page views, sanitized page paths without query strings, approximate location, device/browser information and site interactions. Names, email addresses, account identifiers and user IDs are not sent. | Understand how the site is used and improve its content and operation. | Processed by Google as an analytics processor. Google Analytics cookies may be stored in the browser. Google signals and ad personalization are disabled. | Event-level data follows the Google Analytics property retention setting (Google’s default is two months); aggregate reports may be retained longer. |
| Error monitoring | Technical error type and stack trace, release and environment, route template, request ID, operation and provider error codes, plus a keyed non-reversible account identifier when configured. Request bodies, prompts, answers, solutions, email addresses, names, IP addresses, cookies, authorization headers and Supabase keys are intentionally excluded. | Diagnose and fix errors users encounter and correlate API failures with server logs. | Processed by Sentry in its EU data region at de.sentry.io. No session replay or user-behavior analytics is enabled. | Error events are retained according to the Sentry plan and project retention setting; the operator does not keep a separate event archive. |
| Short-lived browser session state | `visualmaths-api-warmup-started`, `visualmaths.leave-prompt.shown.v1`, and `visualmaths.aiAssistant.greeting.v1.workspace` / `.learn` sessionStorage entries. | Avoid repeating a warm-up request, leave prompt or greeting during a single browser session. | Stored in browser sessionStorage and cleared by the browser when the session ends. | For the lifetime of the browser session. |
1. Who is responsible
The service is operated by Leonard Kelly. Privacy contact: leonard.kelly@scholarlink.it.com.
2. Information processed
The table below is generated from a typed inventory of the current application. It describes data the application handles and its current storage or recipient where known. Hosting providers may also process ordinary server and security logs under their own services.
3. Why information is used
We process information to authenticate users, provide protected lessons and requested features, save work locally, let signed-in users track lesson completion and resume lessons, operate the token ledger and verify purchase requests, enforce usage and abuse limits, respond to feedback, maintain and secure the service, and meet legal obligations.
4. AI features
When you use an AI feature, the prompt and relevant feature context are sent from the VisualMaths server to Google Gemini to generate a response. VisualMaths records usage metadata such as the feature, token charge, model, character counts, status and time; it does not store the prompt or answer text in the AI usage records. Do not include sensitive personal information in a prompt.
Google processes AI requests under the terms and privacy settings applicable to the service used by VisualMaths. Consult Google’s current terms and privacy materials for details of its processing.
5. Payments and premium features
Premium requests are reviewed manually. The app stores the payer/contact and payment reference details, the package and amount, status and administrative review data, together with the Terms/Privacy versions accepted and acceptance time. Requests are stored in Supabase and a notification is sent to the configured administrator through Resend. After a payment request is awarded or an administrator adds tokens directly, VisualMaths sends the account holder a token notification through Resend with the token amount and balance after the grant. The email body is not stored by the app. An account-level opt-out preference is stored in Supabase; administrators can record a request to stop these token emails, and opted-out accounts still receive token grants. VisualMaths does not initiate or process an M-Pesa transaction through an M-Pesa API.
7. Google Analytics 4
When analytics is configured, VisualMaths uses Google Analytics 4 to understand site use. It may collect page views, approximate location, device and browser information, and interactions with the site. We send a sanitized page path without query strings and do not send names, email addresses, account identifiers, user IDs or custom dimensions containing personal information.
Lesson-progress status, lesson slugs, completion timestamps, view counts, request identifiers and account identifiers are not sent as Google Analytics events or event parameters.
Exam answers, attempt identifiers, scores, solution-reveal state, lesson-level exam results and account identifiers are not sent as Google Analytics events or event parameters.
Google processes analytics information on our behalf as a processor. Google Analytics event-level data follows the retention setting for the Analytics property (Google’s default is two months); aggregate reports may be retained longer.
Analytics is not loaded when your browser sends Do Not Track or Global Privacy Control. You can also use browser privacy extensions or install Google’s Analytics opt-out browser add-on at https://tools.google.com/dlpage/gaoptout.
8. Error monitoring
VisualMaths uses Sentry, hosted in the EU region at de.sentry.io, to diagnose and fix application errors. Error events may include a technical error type and stack trace, release and environment, route template, API request ID, operation name and provider error code. Where a server-side user identifier is available and SENTRY_USER_HASH_SECRET is configured, it is transformed using a keyed one-way hash so Sentry can group affected users without receiving their account ID.
Error monitoring does not intentionally collect email addresses, names, IP addresses, cookies, authorization headers, request bodies, AI prompts or answers, exam answers or solutions, or Supabase keys. URL query strings are removed except for a small allowlist of non-sensitive page-navigation values. Session replay and performance tracing are disabled by default. Client error monitoring is not initialized when Do Not Track or Global Privacy Control is enabled, or on admin pages.
Sentry processes this information to provide error monitoring. Events are retained according to the Sentry plan and project retention setting; VisualMaths does not keep a separate error-event archive. You can use Do Not Track or Global Privacy Control to disable client-side Sentry reporting; this does not suppress server-side reporting for requests that cannot carry those browser signals.
10. Retention
Browser-only workspace documents and preferences remain until you clear them or replace them. Signed-in lesson progress remains until you reset it on the Learning progress page or the linked progress account row is deleted. Exam attempts remain linked to the account until the account record is deleted; the application does not currently define a separate exam-attempt retention period. The application does not currently define a complete retention schedule for server-side account, payment, token, AI-usage, feedback-email or hosting-log data.
11. Security
The service uses server-side controls intended to limit access to account and premium records, protect credentials and reduce misuse. No internet transmission or storage system can be guaranteed completely secure. Do not send passwords, payment PINs or unnecessary sensitive information through the service.
12. Your choices and rights
You can clear locally saved workspace documents and preferences through your browser’s site-data controls. If signed in, use Reset my progress on the Learning progress page to delete saved lesson-progress records and subject exam attempts for your account. To request deletion of your account information, contact leonard.kelly@scholarlink.it.com; deleting the linked account record cascades to its exam attempts and lesson-progress records. Depending on your location, you may have rights to access, correct, delete, restrict or object to certain processing, and to complain to a supervisory authority.
13. Children and young people
VisualMaths is an educational service, but the operator has not established a separate child account or parental-consent workflow in the application. If a person needs an adult’s consent under the law that applies to them, they should use the service only with that consent.
14. International processing
The application uses third-party providers that may process information in locations outside your country.
15. Changes to this Policy
We may update this Policy as the service changes. The current version and last-updated date are shown on this page. Material changes will be highlighted where appropriate, and any consent required by law will be requested.
16. Contact and complaints
Privacy questions or requests: leonard.kelly@scholarlink.it.com.