codediodeio / angular-gtag

:bookmark: Google Analytics gtag.js for Angular
109 stars 20 forks source link

Option to enable/disable all analytics #11

Open simmetric opened 5 years ago

simmetric commented 5 years ago

To comply with GDPR and other data protection laws, analytics may only be recorded once the user has accepted them. Google Analytics also sets cookies which must be explicitly allowed. This PR allows a dev to disable analytics by default until the user accepts their usage.