Unknow error on insertBefore
AnsweredSo I've installed Cookiebot through GTM. Everything works fine on www.igene.nl and www.igene.eu, but somehow I get a fail on www.igene.co.uk
The script seems to stumble when trying to execute insertBefore(CookiebotScript,CookiebotScriptContainer)
What puzzles me is that it only does this on the co.uk domain.
-
Hey Dio,
It seems that the error occurs, because the container element with ID "bodycontent" has not been loaded when the script is executed. You can proceed by:
1. Configure GTM to wait for this element to load. Check if the cookie declaration trigger type is "PageView" as described in the GTM guide here: https://support.cookiebot.com/hc/en-us/articles/360003793854-Google-Tag-Manager-deployment
2. Change the trigger type to "Window load"
Regards,
Martin0 -
Hi Martin,
I tried this but I'm still getting the same error. See for youself in the console: http://www.igene.co.uk/
0
Please sign in to leave a comment.
Comments
2 comments