# analytics_opt_out turns off error reporting too


> One setting in anthias.conf now stops usage statistics and error reports from Anthias and from its WiFi setup service, and the upgrade script keeps it in place across upgrades.

Setting `analytics_opt_out = True` in the `[main]` section of `~/.anthias/anthias.conf` now turns off error reporting as well as usage statistics, unless you send error reports to your own Sentry project with `SENTRY_DSN`. Before 2026.12.0 it stopped the statistics and kept personal details out of error reports, but the reports themselves were still sent, and the WiFi setup service sent its own regardless. Stopping them meant setting `SENTRY_DSN` and adding `WIFI_CONNECT_NO_SENTRY` to `docker-compose.yml` by hand, and the next upgrade rewrote that file.

From Anthias 2026.12.0:

- The web server and background worker send no error reports when the setting is on. They read it when they start, so restart them, or reboot, after changing it.
- The upgrade script reads the setting each time it runs and passes it to the WiFi setup service, so it holds across upgrades. A change reaches that service the next time `~/anthias/bin/run_upgrade.sh` runs.
- If you set `SENTRY_DSN` to send error reports to your own Sentry project, they still go there. With the setting on, those reports leave out IP addresses, cookies and login headers, but they can still include the address that was requested, the request body and other details of the error.

There's no switch for this in the web interface. On balena, the upgrade script doesn't run: set the key in `/data/.anthias/anthias.conf` from a shell in the `anthias-server` container, add a device variable `WIFI_CONNECT_NO_SENTRY=true`, and restart.