Problem/Motivation

For compliance with the Cookiebot standars the GTM script needs to be loaded before the Cookiebot script in the header. Currently this is happening in the reverse order.

Steps to reproduce

Inspect a page on a project where the module is installed and look in the section to view the order of the script tags being loaded.

Proposed resolution

The module file needs to be updated to reverse the loading order of the two scripts.

Comments

roaldnel created an issue. See original summary.

roaldnel’s picture

See the patch below to ensure that GTM is loaded before the Cookiebot script in the head.

batigolix’s picture

Status: Active » Reviewed & tested by the community

I tested the patch locally. It applies well. The module works well.

batigolix’s picture

roaldnel’s picture

Okay great, thank you, I am applying the patch.

  • roaldnel committed 07b1e7ce on 1.0.x
    Issue #3367888 by roaldnel, batigolix: GTM needs to load before the...
fabianderijk’s picture

Status: Reviewed & tested by the community » Fixed

Marking this issue as fixed.

Status: Fixed » Closed (fixed)

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