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.

Make Hotjar ID optional

Remaining tasks

Attached is a proposed patch.

Comments

fengtan created an issue. See original summary.

  • tikaszvince committed f9b536d on 8.x-2.x
    Issue #3298655 by fengtan: Make Hotjar ID field optional
    
tikaszvince’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.