Skip to content

fix(Analytics): Enable cookies when consented

Jiaan Louw requested to merge jlouw-fix-analytics-cookies into main

What

Enable cookie tracking on GitLab Analytics if user consents.

Why

Cookie tracking is disabled unless hasCookieConsent is set to true. SDK documentation:

To use cookies to identify unique users and record their full IP address. This is set to false by default. When false, users will be considered anonymous users. No cookies or other storage mechanisms will be used to identify users.

Without cookies snowplow cannot identify unique users and the Audience dashboard will continue to report bad user numbers.

Edited by Jiaan Louw

Merge request reports