Problem/Motivation
The module is unfortunately lacking several quality of life improvements. Some of the quality of life improvements I feel this module should have are:
UI based configuration for various options:
#1, Configure whether to include only tracking only for anonymous users, only for logged in users, or for all users directly in the UI.
#2, Configure the 'excluded route' matches directly in the UI.
Proposed resolution
Expose configuration options in the configuration form, instead of having them hard-coded into the module.
User interface changes
Create two additional fields:
Select list - Track For - Anonymous Only, Authenticated Only, All Users
Textarea - Excluded Route Matches
In addition, Drupal 11 support should be added and the external library should be attached to the pages as needed.
Issue fork siteimprove_analytics-3558630
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:
- 2.x
changes, plain diff MR !2
- 3558630-qol-improvements
compare
Comments
Comment #2
jfurnas commentedComment #3
jfurnas commentedI am currently working through this, and getting it in a good place. Will hopefully have it finalized in a day or so and can get it ready for review.
Comment #6
jfurnas commentedComment #8
grask0 commentedComment #9
grask0 commentedHey,
Thanks, guys, for your work on this issue!
I have created a new branch 2.1.x and a new 2.1.x DEV release.
Also updated the code and fixed several issues.
Comment #10
jfurnas commentedThanks for picking this up grask0. I was originally just trying to get this into an improved state over what it was in previously, and got overwhelmed with all the teeny tiny details that were being asked to be changed.
Comment #11
grask0 commentedThank you @jfurnas, for this hard work! It would have been difficult to accomplish all of this without your changes!
Comment #13
grask0 commentedAlso, Andy Fowlston (andyf), thanks for your help as well!