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

Command icon 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

krlucas created an issue.

frob’s picture

This is an interesting idea. Is there a way to use hook_requirements from the frontend?

krlucas’s picture

@frob not directly AFAIK. But I'll see what I can come up with.