Recent comments

๐Ÿ‡บ๐Ÿ‡ธUnited States adanbouzoua

A related issue in Google Tag
Script placement differences between 1.x and 2.x
https://www.drupal.org/project/google_tag/issues/3451427 ๐Ÿ’ฌ Script placement differences between 1.x and 2.x Active

๐Ÿ‡บ๐Ÿ‡ธUnited States adanbouzoua

adanbouzoua โ†’ changed the visibility of the branch 3451427-script-placement-differences to hidden.

๐Ÿ‡บ๐Ÿ‡ธUnited States adanbouzoua

adanbouzoua โ†’ made their first commit to this issueโ€™s fork.

๐Ÿ‡บ๐Ÿ‡ธUnited States adanbouzoua

Update
The previous test was done with Google Tag Version: 8.x-1.6 and Datalayer 2.0.1
Changing Google Tag Version: 8.x-1.6. >> Version: 2.0.2 fix the issue

Conclusion: Datalayer 2.0.1 + Google Tag 2.0.2 has no issue. The module works with Google Tag version 2 but not with Google Tag version 8
---
dataLayer.push allows the snippet elsewhere than inside .
It seems that it has been implemented on Google Tag 2.0.2 but not 8.x-1.6

Data Layer declaration vs dataLayer.push
By adding a dataLayer snippet above the GTM container snippet. This step is called โ€œData Layer declarationโ€.
Or by pushing data with dataLayer.push method.
https://www.analyticsmania.com/post/what-is-data-layer-in-google-tag-man...

๐Ÿ‡บ๐Ÿ‡ธUnited States adanbouzoua

The version 2.0.0 has not bug related to snippet placement.
The bug was introduced with the version 2.0.1

Production build 0.71.5 2024