Sensitive data sent to Google Analytic detected.

  • Rule ID: javascript_third_parties_google_analytics
  • Languages: javascript
  • Source: google_analytics.yml


Leaking sensitive data to third-party analytics tools is a common cause of data leaks and can lead to data breaches. This rule looks for instances of sensitive data sent to Google Analytics.


When sending data to analytics libraries, ensure all sensitive data is removed.

If you really need to identify users, use unique identifiers from the database.

  gtag("event", "screen_view", {
user: {
subscribed: true,


Associated CWE

OWASP Top 10

Ready to take the next step? Join the Bearer Cloud waitlist.