Use the power of Cookiebot in your Vue / Nuxt application.
Welcome to the Vue Cookiebot plugin documentation.
- Easy setup
- Supports Vue and Nuxt projects
- Trigger the consent banner and the cookie declaration
- Supports culture / language options with vue-i18n or @nuxtjs/i18n.
- Access functionality through easy-to-use composable
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');
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