Problem/Motivation
We should allow people to use this module even if they include the Google Analytics code snippet in some other way, for instance via Google Tag Manager.
Proposed resolution
- Remove the module dependency.
- Ensure trackers fails gracefully if GA snippet is missing.
- Consider warning administrators if snippet is undetected, via hook_requirements, console.logs and/or some other mechanism.
Remaining tasks
User interface changes
API changes
Data model changes
Issue fork google_analytics_et-3170314
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
frobThis is an interesting idea. Is there a way to use hook_requirements from the frontend?
Comment #3
krlucas commented@frob not directly AFAIK. But I'll see what I can come up with.