Allow empty JSON data

Created on 27 May 2022, over 2 years ago
Updated 9 May 2023, over 1 year ago

Problem/Motivation

Right now, this module is requiring the user to input JSON GTM Data for all categories. You can't save the form otherwise.

This could be unnecessary in some cases.

For example, EU Cookie compliance allows a category to be "Checked and disabled (user cannot clear the checkbox)".

This is usually used for "Mandatory" or "Essential" cookies, i.e informing the user about the existence of a set of cookies that comply with the GDPR and are absolutely necessary for the web to function properly.

This is a common pattern, but this module won't allow an empty GTM Data on this case even if you don't want and don't need to trigger anything on GTM using datalayer.push.

Proposed resolution

Allow the user to leave the GTM data empty.

Feature request
Status

Fixed

Version

1.0

Component

Code

Created by

🇪🇸Spain idiaz.roncero Madrid

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.

Production build 0.71.5 2024