Problem/Motivation

It was found that the approach to reordering of the scripts according to the Cookiebot documentation was causing issues with Google Analytics. Initially Google Consent Mode was implemented (v1.0.11) in an attempt to alleviate this issue but it seems like the consent mode scripts were not behaving as expected presumably due to the reordering of the scripts on a programatic level (v1.0.9).

Steps to reproduce

If you attempt to get Google Analytics stats from sites that have Cookiebot + GTM v1.0.9 or later installed you should find that there are issues with the site settings.

Proposed resolution

The code updates included in versions 1.0.9 to 1.0.11 should be removed.

Comments

roaldnel created an issue. See original summary.

roaldnel’s picture

The updated code can be found in the attached patch.

  • roaldnel committed 32c9c8f5 on 1.0.x
    Issue #3381424 by roaldnel: Reordering of script loading (v1.0.9) breaks...
batigolix’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.