Skip to content

Multiple Cookiebot instances for an app with multiple domains. #23

Description

@pieterjanmaes

Hi,

I have a Nuxt 3 app with multiple domains. For every domain you should have a different Cookiebot instance. Is it possible to add multiple tokens? One for every domain?

Any ideas?

Activity

  1. bnachtweh commented on Nov 5, 2024

    @bnachtweh
    Collaborator

    Hi @pieterjanmaes, thank you for your issue :-)

    Currently this is not possible, but it is a good enhancement. I'll add it to the roadmap to pick this up.

  2. pieterjanmaes commented on Nov 5, 2024

    @pieterjanmaes
    Author

    Hi @bnachtweh,

    For now w're gonna add Cookiebot with our GTM.

    Thanks for putting it on the roadmap!

  3. self-assigned this
    on Nov 5, 2024
  4. linked a pull request that will close this issueProject rework #31on Aug 4, 2026
  5. bnachtweh commented on Aug 4, 2026

    @bnachtweh
    Collaborator

    @pieterjanmaes you can now use runtime config to set cookiebot ID: https://vue-nuxt-cookiebot.netlify.app/nuxt/env#using-nuxt-runtime-config

    This should allow you to set a cookiebot ID per domain if you provide a runtime config for it.

    Make sure to update to the latest release and please note that cookieBotId has been renamed to cookiebotId

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions