• LS

    (@lsterling03)


    When adding new consents, we are given the option to place the script in the head or footer. If select “head” it seems to put it near the end of the head tag. However, for Google Tag Manager, I need to place the script as high as possible, just after the opening head tag. Is there any way to control placement?

    Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter LS

    (@lsterling03)

    I also have a script that needs to go after the opening body tag. That doesn’t seem to be an option. Is there any way to add these consents manually so I can place the scripts where I need them?

    Put the script in a java function manually by theme or other methods in the desired place in the < header > then in consent call this function. It will be executed only if visitor accept the consent. Don’t see another way to control the order of query the script (priority should be an option, but it’s working so so, because of too many plugins and some of them have same priorities of loading).
    Cheers !

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Placement of scripts in head’ is closed to new replies.