Skip to content

GDPR: cookie should be disable for GA #1

@noxasch

Description

@noxasch

I've been using codersrank widget using the CDN approach. But not sure which part is causing this,

I notice there were a GA cookie when i'm using codersrank widget on my personal website, GA1.2.710236043.1620414532 to domain .codersrank.io. This are not mentioned in the docs, but it seems GA tag is included in the script somehow.

The default is GA for codersrank widget will store cookies on users machine. This is not GDPR compliance as cookie is considered PII in GDPR and require consent of the user.

Codersrank should provide interface to disable/enable ga tracking cookies or use the consent_mode by default to disable the cookie.

gtag('consent', 'default', {
  'ad_storage': 'denied',
  'analytics_storage': 'denied'
});

refer to https://support.google.com/analytics/answer/9976101?hl=en for reference on consent mode.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions