Use the power of Cookiebot in your Vue / Nuxt application.

Welcome to the Vue Cookiebot plugin documentation.

Vue
// Vendor
import { cookieBot } from '@ambitiondev/vue-cookiebot';
import { createApp } from 'vue';

// Components
import App from './App.vue';

const app = createApp(App);

app.use(cookieBot, {
  cookieBotId: 'COOKIEBOT_ID_HERE',
});

app.mount('#app');
Nuxt
export default defineNuxtConfig({
  modules: ["@ambitiondev/nuxt-cookiebot"],
  cookiebot: {
    cookieBotId: 'COOKIEBOT_ID_HERE',
  },
});

What's included

Vue Composable

Adding Cookiebot functionality is a breeze!

Nuxt Composable

Using Nuxt? Use the composable in the same way!

i18n supported

Support for both vue-i18n and @nuxtjs/i18n