Errors if analytics lib is not loaded
-
We are using this plugin in conjunction with Borlabs Cookie in order stay GDPR compliant. We have an opt-in solution, which ensures, that Google Analytics is only loaded if the user agreed to being tracked.
However: If the user has not given consent and the google analytics lib is not loaded, your plugin throws an error that gtag function is undefined.
Would it be possible to safeguard these methods or more in general: That your plugin only runs, if an active Google Analytics integration was found?
GDPR court decisions move into the direction that opt-in is mandatory for Google Analytics/Tracking so I assume this will affect all European users of the plugin.
The topic ‘Errors if analytics lib is not loaded’ is closed to new replies.