Create a submodule to load GTM only after consent.

Created on 8 February 2023, over 1 year ago
Updated 5 January 2024, 6 months ago

Problem/Motivation

When using the module https://www.drupal.org/project/google_tag β†’ , it loads the GTM without the user's consent.

Proposed resolution

Change how the GTM scripts are loaded and replace the "src" with "data-src" and add "data-name" as it's required for klaro to load the resource only after consent.

πŸ“Œ Task
Status

Needs review

Version

1.0

Component

Code

Created by

πŸ‡·πŸ‡΄Romania szloredan

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

Merge Requests

Comments & Activities

Production build 0.69.0 2024