Allow empty Web Property ID via Variable module integration.

Created on 8 April 2013, over 11 years ago
Updated 6 July 2023, over 1 year ago

For a long time now I have been setting the Web Property ID as blank via settings.php or similar methods so that tracking doesn't occur on any environment other than my production environment.

Recently I released a module, Contextual variables β†’ , that allows for variables defined by the Variable module to be defined via Context, allowing me to theoretically do what I used to do via settings.php via UI instead.

I was happy to see that the Google Analytics module had declared the Web Property ID, but unfortunately I found that it required a value and validated the value, which meant I couldn't set it to blank to prevent tracking to occur.

While I understand that this may not exactly be something you would want to encourage, it is something I would think would be extremely useful.

Patch attached in comment #1.

✨ Feature request
Status

Closed: outdated

Version

2.0

Component

Code

Created by

πŸ‡¦πŸ‡ΊAustralia Deciphered

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States japerry KVUO

    With the sunset of legacy google analytics, the 8.x-2.x module is now unsupported. If this is still an issue with the 4.x version, please file a new issue in the queue.

Production build 0.71.5 2024