Data layer not added as early as possible

Created on 11 June 2024, 4 months ago

Problem/Motivation

Google Tag Manager asks that the script code be added as high in the of the page as possible. Having the google_tag library script in the footer is effectively the opposite as the google_tag script has to load and execute before the Google Tag manager script is added to the .

Proposed resolution

Provide a simple config option to add the Google Tag Manager script as early in the as possible. For more advanced config implement solution that loads as early as possible.

Remaining tasks

Work with COOKiES Consent Management β†’ if needed to retain integration support.

πŸ“Œ Task
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States greenskin

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

Comments & Activities

Production build 0.71.5 2024