|
| 1 | +# Developer Privacy Notice for Data Collection |
| 2 | + |
| 3 | +To help improve the WebVR API and the [Unity WebVR assets](https://assetstore.unity.com/packages/templates/systems/webvr-assets-109152), Mozilla automatically receives general-usage statistics and error exceptions of end users, using [Sentry](https://sentry.io) and [Google Analytics](https://analytics.google.com/analytics/web/). |
| 4 | + |
| 5 | +Developers can turn off this data collection by [modifying the configuration snippet that comes with the VR template](./docs/customization/disabling-telemetry.md). |
| 6 | + |
| 7 | +End users can turn off this data collection by enabling [`Do-Not-Track`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/DNT) in their browsers. |
| 8 | + |
| 9 | +## List of Collected Data |
| 10 | + |
| 11 | +- Unique UUID-v4 random identifier (generated according to [IETF RFC4122](http://www.ietf.org/rfc/rfc4122.txt)), persisted in the browser's [`LocalStorage`](https://developer.mozilla.org/en-US/docs/Web/API/Storage/LocalStorage) |
| 12 | +- JavaScript error (exception) messages (without file paths) |
| 13 | +- Console messages (i.e., error, warning, log, info) |
| 14 | +- Respects [Do-Not-Track](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/DNT) (i.e., `DNT: 1` HTTP header and `navigator.doNotTrack === '1'` JavaScript value) |
| 15 | +- Dimensions (width × height) of the browser's `screen` and `window`, ratio of the resolution (i.e., `navigator.devicePixelRatio`) |
| 16 | +- Release version of the [Unity WebVR Assets](https://github.com/mozilla/unity-webvr-export) package being used (e.g., [`v1.0.1`](https://github.com/mozilla/unity-webvr-export/releases/tag/v1.0.1)) |
| 17 | +- JavaScript Heap memory used (measured in megabytes) |
| 18 | +- [WebXR API](https://immersive-web.github.io/webxr/spec/latest/) support (i.e., `navigator.xr`) |
| 19 | +- [WebVR v1.1 API](https://immersive-web.github.io/webvr/spec/1.1/) support (i.e., `navigator.getVRDisplays`) |
| 20 | +- [WebVR v1.1 events](https://immersive-web.github.io/webvr/spec/1.1/#interface-window) emitted by the browser (i.e., user-initiated actions and headset events) during a unique page load: |
| 21 | + - Number of times and time until VR mode is entered (e.g., user keypress, user click, automatically presented) |
| 22 | + - Number of times and time until VR mode is exiting (e.g., user keypress, user click, automatically exited, browser's Back button, browser's navigation to another page, etc.) |
| 23 | + - Number of times and time until a VR device is worn/mounted |
| 24 | + - Number of times and time until a VR device is taken off/unmounted |
| 25 | + - Number of times and time until a VR device has been connected (or detected on page load) |
| 26 | + - Number of times and time until a VR device has been disconnected/unplugged |
| 27 | + - Number of times and time until a mouse cursor is temporarily disabled for input while "pointerlocked" in VR mode (e.g., for Windows Mixed Reality's desktop flat-pane views) |
| 28 | + - Number of times and time until a mouse cursor is temporarily disabled for input while "pointerlocked" in VR mode (e.g., for Windows Mixed Reality's desktop flat-pane views) |
| 29 | +- Amount of time the active page took to load and to reach: |
| 30 | + - Loading screen |
| 31 | + - Splash screen |
| 32 | + - Unity game |
| 33 | +- Amount of time the active page was open for ("session length") |
| 34 | +- Browser's `User-Agent` string (i.e., `navigator.userAgent`) |
| 35 | +- [WebGL 1.0 API](https://www.khronos.org/registry/webgl/specs/latest/1.0/) support |
| 36 | +- [WebGL 2.0 API](https://www.khronos.org/registry/webgl/specs/latest/2.0/) support |
| 37 | +- [Gamepad API](https://w3c.github.io/gamepad/) |
| 38 | + - Support of API (i.e., `navigator.getGamepads`) |
| 39 | + - Names of connected gamepads (i.e., `Gamepad#id`) |
| 40 | +- [Web Audio API](https://webaudio.github.io/web-audio-api/) support (i.e., `AudioContext`) |
| 41 | +- [WebAssembly (WASM) API](http://webassembly.org) support (i.e., `WebAssembly`) |
| 42 | +- [Web Worker](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API) support (i.e., `Worker`) |
| 43 | +- [Service Worker API](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API) (i.e., `navigator.serviceWorker`) |
| 44 | +- [`requestIdleCallback` API](https://developer.mozilla.org/en-US/docs/Web/API/Window/requestIdleCallback) (i.e., `window.requestIdleCallback`) |
0 commit comments