Data Collected for Cordova

See what data is collected by the Sentry Cordova SDK.

Sentry takes data privacy very seriously and has default settings in place that prioritize data safety, especially when it comes to personally identifiable information (PII) data. When you add the Sentry SDK to your application, you allow it to collect data and send it to Sentry during the runtime and build time of your application.

The category types and amount of data collected vary, depending on the integrations you've enabled in the Sentry SDK. This page lists data categories that the Sentry Cordova SDK collects.

You can always scrub any data before it's sent to Sentry. See Scrubbing Sensitive Data for more information.

By default, the HttpContext integration sends the User-Agent and Referer headers of the current page to Sentry.

By default, the Sentry SDK doesn't send any information about the logged-in user, such as email address, user ID, or username. User information is only sent if you set it with Sentry.setUser().

If you set the ip_address of the user to "{{ auto }}" with Sentry.setUser(), Sentry will infer the IP address from the connection between your app and Sentry's server.

To ensure your users' IP addresses are never stored in your event data, you can go to your project settings, click on "Security & Privacy", and enable "Prevent Storing of IP Addresses" or use Sentry's server-side data scrubbing to remove $user.ip_address.

By default, the HttpContext integration sends the URL of the current page to Sentry. Breadcrumbs for outgoing fetch and XHR requests include the full request URL, including the query string.

The Sentry SDK doesn't send request or response bodies.

By default, SDKs set up by the Sentry CLI Wizard (@sentry/wizard) will enable uploading source maps to Sentry.

To disable source map upload, see the Source Maps documentation.

The Sentry SDK doesn't send local variables in JavaScript stack traces.

By default, the Sentry SDK sends information about the device, operating system, and runtime to Sentry. When the native SDK is enabled, this information is collected by the native iOS or Android SDK. Otherwise, it's obtained from the User Agent string.

By default, the Sentry SDK sends console logs to Sentry as breadcrumbs, which may contain PII data.

To disable sending console messages, set the console option of the Breadcrumbs integration to false.

Was this helpful?
Help improve this content
Our documentation is open source and available on GitHub. Your contributions are welcome, whether fixing a typo (drat!) or suggesting an update ("yeah, this would be better").