Cookie notifier 🍪
options
option | Description |
---|
link | link of policy of cookies |
cta | object with cta configurations |
cta.text | Text of button |
cta.backgorund | background of button |
cta.color | color of button text |
VUE
Install the npm dependency
npm i @vivareal/cookie-notifier
import and execute then in your App.js
for example.
import cookieNotifier from '@vivareal/cookie-notifier'
export default {
mouted() {
new cookieNotifier({
link: 'http://www.google.com',
cta: {
text: 'Entendi',
background: '#1190cd',
color: '#fff',
},
})
}
}
Landingpages
Insert this on a script place in unbouce, WIX or other plataform.
Or dectily in index.html
page inside the <body>
tag.
The source of script have to follow this pattern unpkg.com/:package@:version/:file
.
See the documentation in unpkg
<script src="https://unpkg.com/@vivareal/cookie-notifier@1.0.0"></script>
<script>
new cookieNotifier({
link: 'http://www.google.com',
cta: {
text: 'Entendi',
background: '#1190cd',
color: '#fff',
},
})
</script>