mgonto / angularytics

The solution to tracking page views and events in a SPA with AngularJS
MIT License
630 stars 70 forks source link

Compatibility with cookie consent #31

Open mrtnjln opened 10 years ago

mrtnjln commented 10 years ago

I try to include angularytics to web site that use library Cookie consent. The issue is when the user doesn't agree analytics cookies, my google analytics script is not loaded. So I've the following error: ReferenceError: _gaq is not defined.

I try to manage angularytics with cookies consent but when the user doesn't agree analytics cookies, the script is not loaded and angular doesn't know the provider.

How can I do to solve this issue.