gatsby-plugin-google-tagmanager script ordering #31072
Answered
by
nbaosullivan
nbaosullivan
asked this question in
Help
-
Hi there, I'm currently just implementing OneTrust's CookiePro that includes a cookie blocking script that really needs to go before everything else in the HEAD, especially tag manager (so that it can block cookies it will create). My problem is the ordering of the necessary script tags.
Is it the tag manager snippet doing this? |
Beta Was this translation helpful? Give feedback.
Answered by
nbaosullivan
Apr 27, 2021
Replies: 1 comment
-
Ignore: upon initialising it seems GTM moves itself up. With JS disabled, using the |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
nbaosullivan
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ignore: upon initialising it seems GTM moves itself up. With JS disabled, using the
src/html.js
approach works (adding the script before{props.headComponents}
)