import Vue from 'vue'
...
import VueCookieBot from '@nafia123/vue-3-cookiebot-plugin'
Vue.use(VueCookieBot, {
cookieBotID: 'insert your cookiebot ID here'
})
const app = new Vue({
...
})
Option | Mandatory | Type | Description | Default |
---|---|---|---|---|
async | no | boolean | Defines wether or not the script is going to be loaded asynchronously (can be overridden in later functions) | false |
blockingMode | no | 'auto' | 'none' | Defines if Cookiebot should automatically block all cookies until a user has consented. See official Cookiebot docs | 'auto' |
cookieBotID | yes | string | Set your Cookiebot ID, so it loads your Cookiebot account | '' |
defaultLocale | no | string | Set default language for Cookiebot banners / consent pages | 'en' |