• Resolved level-level

    (@level-level)


    We are using this plugin in combination with Visual Website Optimizer and the plugin add a JS script before the Cookiebot.

    I noticed that by setting the priority to 1 in your plugin it gets included a bit higher, but that’s not something I can do 😉

    So I switched to manually including the script in my template file.

    add_action('wp_head', array($this,'add_js'), 1,1);

    Do you experience the same thing?

    Jaime

Viewing 1 replies (of 1 total)
  • Plugin Author cookiebot

    (@cookiebot)

    Hi @level-level

    If you change the script in VWO to type=”text/plain”, and add the data-cookieconsent attribute, as described in our help step 3, then it does not matter that the script comes before Cookiebot, as it will not be rendered before the user consents.

    Hope this makes sense. Please try it yourself. If you are a developer, you are more than welcome to make an addon for VSO at our github repository. The addon is supposed to do the tagging so that you don’t have to do it manually on new updates. The repository will hopefully be released as a WP plugin soon.

    • This reply was modified 7 years, 11 months ago by cookiebot.
Viewing 1 replies (of 1 total)

The topic ‘wp_head priority’ is closed to new replies.