-
-
Notifications
You must be signed in to change notification settings - Fork 160
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow consumer to disable tracking by default #264
Comments
After some iterations on the implementation of a cookie notice in my application I'm not that sure anymore if overwriting import MetricsService from 'ember-metrics/services/metrics';
import { inject as service } from '@ember/service';
export default class CustomizedMetricsService extends MetricsService {
@service cookieConsent;
enabled = this.cookieConsent.isAccepted;
} Actually it doesn't look that bad in my opinion. So maybe it's just a matter of documenting this approach? |
The cookie consent services allow the user to agree/disagree a list of consents or vendors. If I understand correct, the |
This depends on the implementation of The |
Ember Metrics allows to globally enabled and disable tracking through
enabled
property of the metrics service. This is helpful to comply with European privacy rules. It allows a site to disable tracking until the user explicitly confirmed to tracking. Sadly the value of that property is hardcoded astrue
. This forces consumers that want to disable tracking by default into two hacks:enabled
property.enabled
tofalse
early in application boot e.g. using an instance initializer orbeforeModel
hook of application route.It would be better if ember metrics allows to control the default value of that property through a configuration option.
The text was updated successfully, but these errors were encountered: