Problem/Motivation
We run a multisite installation with this module installed on all sites. We would like to grant site administrators the ability to enable or disable Hotjar on their site, however the admin interface at admin/config/system/hotjar does not seem to allow this: once you have provided a Hotjar ID, you cannot disable Hotjar anymore as the field Hotjar ID is mandatory.
Proposed resolution
How about making the field Hotjar ID optional at admin/config/system/hotjar, and attaching the Hotjar JS only if a Hotjar ID was provided ? This would provide a way for site administrators to disable Hotjar on their site without having to uninstall the module.

Remaining tasks
Attached is a proposed patch.
| Comment | File | Size | Author |
|---|---|---|---|
| hotjar-id-optional.png | 34.3 KB | fengtan | |
| hotjar-id-optional.patch | 1.69 KB | fengtan |
Comments
Comment #3
tikaszvince commented