You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
The Google Analytics feature always includes the GA tracking script in GoogleAnalyticsFilter. Instead, it should only include this if the user gave consent to tracking, otherwise, it's a legal risk under GDPR for EU companies. Potentially something similar for websites run by other entities around the world too.
Describe the solution you'd like
The built-in ASP.NET Core feature can be used for this, just by adding the below check to GoogleAnalyticsFilter:
vartrackingConsentFeature= _hca.HttpContext.Features.Get<ITrackingConsentFeature>();if(trackingConsentFeature isnull|| trackingConsentFeature.CanTrack){// Only insert the tracking script here.}
Describe alternatives you've considered
There are no alternatives, and I'm afraid because this is what our legal counsel told us:
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
The Google Analytics feature always includes the GA tracking script in
GoogleAnalyticsFilter
. Instead, it should only include this if the user gave consent to tracking, otherwise, it's a legal risk under GDPR for EU companies. Potentially something similar for websites run by other entities around the world too.Describe the solution you'd like
The built-in ASP.NET Core feature can be used for this, just by adding the below check to
GoogleAnalyticsFilter
:Describe alternatives you've considered
There are no alternatives, and I'm afraid because this is what our legal counsel told us:
The text was updated successfully, but these errors were encountered: