# AnalyticsSettings

> Editor API for the Unity Services editor feature. Normally Analytics is enabled from the Services window, but if writing your own editor extension, this API can be used.

## Definition

* **Type:** Class
* **Namespace:** [UnityEditor.Analytics](/engine/6000.6/script-reference/unityeditor/analytics.md)
* **Assembly:** UnityEditor.CoreModule

```csharp
public static class AnalyticsSettings
```

## Static Properties

| Property                                                                                                                          | Description                                                                                                               |
| --------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- |
| [configUrl](/engine/6000.6/script-reference/unityeditor/analytics/analyticssettings/configurl.md)                                 | Set the Analytics config end point.                                                                                       |
| [dashboardUrl](/engine/6000.6/script-reference/unityeditor/analytics/analyticssettings/dashboardurl.md)                           | Get the Analytics dashboard endpoint.                                                                                     |
| [deviceStatsEnabledInBuild](/engine/6000.6/script-reference/unityeditor/analytics/analyticssettings/devicestatsenabledinbuild.md) | Reports whether device stats are enabled at runtime.                                                                      |
| [enabled](/engine/6000.6/script-reference/unityeditor/analytics/analyticssettings/enabled.md)                                     | If set to true, this Boolean field enables the Analytics feature in Unity. It disables the feature if it is set to false. |
| [eventUrl](/engine/6000.6/script-reference/unityeditor/analytics/analyticssettings/eventurl.md)                                   | Set the Analytics event end point.                                                                                        |
| [initializeOnStartup](/engine/6000.6/script-reference/unityeditor/analytics/analyticssettings/initializeonstartup.md)             | Controls whether Unity initializes Analytics immediately on startup.                                                      |
| [testMode](/engine/6000.6/script-reference/unityeditor/analytics/analyticssettings/testmode.md)                                   | Set to true for testing Analytics integration only within the Editor.                                                     |

## Static Events

| Member                                                                                                                        | Description                                                                                          |
| ----------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- |
| [OnRequireInBuildHandler](/engine/6000.6/script-reference/unityeditor/analytics/analyticssettings/onrequireinbuildhandler.md) | Dispatches whenever a platform build starts. Use this event to enable Analytics in a platform build. |

## Delegates

| Delegate                                                                                                                                      | Description                                                                               |
| --------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- |
| [AnalyticsSettings.RequireInBuildDelegate](/engine/6000.6/script-reference/unityeditor/analytics/analyticssettings/requireinbuilddelegate.md) | Defines the delegate signature to handle AnalyticsSettings.RequireInBuildDelegate events. |
