Skip to main content

Unknow error on insertBefore

Answered

Comments

2 comments

  • Martin - vConnect - Community Supporter

    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,
    Martin

    0
  • Dio

    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.