> ## Documentation Index
> Fetch the complete documentation index at: https://docs.1-news.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Turn analytics on or off

> Turn analytics on or off for a newsroom. This does not return reports from inside the analytics product.

Turn analytics on or off. Only the owner can do this. This does not read reports from inside the analytics product.

**projectId** `string` *required*

The newsroom id.

**enabled** `boolean` *required*

True turns analytics on. False turns it off.

**removeData** `boolean`

True, with enabled set to false, schedules the stored analytics data for deletion.

**ok** `boolean`

True when the setting was saved.

**enabled** `boolean`

Whether analytics is on.

**purgeAt** `string`

When a scheduled deletion will run, or empty when nothing is scheduled.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.