GTM script and GTM noscript use different visibility conditions

Created on 28 December 2020, almost 4 years ago
Updated 26 May 2023, over 1 year ago

Problem/Motivation

The GTM script is conditionally added as a script to the html head.
The GTM noscript is always added to the html body.
As a result, the GTM is loaded for every html request.

Steps to reproduce

Proposed resolution

Use the same visibility conditions for the GTM script and the GTM noscript.

Remaining tasks

  1. Write a patch
  2. Review
  3. Commit

User interface changes

None.

API changes

GTM is not loaded on admin routes.

Data model changes

None.

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇳🇱Netherlands idebr

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