If GDPR requires your website to have a cookie policy and a cookie banner, you can enable cookie consent in Smartsupp so that cookies are only stored once your visitor agrees. This guide shows you where to turn it on and how to control Smartsupp's cookies from your banner.
Heads up: Setting this up requires advanced programming knowledge. If you're not comfortable with code, pass this article to the developer or webmaster who manages the cookie bar on your website.
We've broken the article into a few sections:
Enable cookie consent in Smartsupp
You'll find the cookie consent settings under Settings → Account settings → Security and Privacy.
Cookie consent is disabled by default. Once enabled, only the necessary cookies are stored until the visitor agrees to more. See the list of functional (necessary) cookies.
To store marketing cookies, you have to trigger a specific code (see below) — by default marketing consent is empty, so those cookies aren't stored until the visitor agrees. See the list of marketing cookies.
Add the consent code to your website
Cookie consent is easy to implement with JavaScript — wire the buttons in your cookie banner to the Smartsupp statistics and marketing cookie calls below.
If the visitor ignores the banner
If a visitor neither confirms nor rejects the banner:
The
ssupp.visitcookie keeps its previous value and won't increase until consent is granted (this affects only this value in the cookies/Dashboard, not the visit count operators see).No Google Analytics events are sent.
Chatbots and automatic messages keep working unchanged.
If the visitor accepts
Marketing cookies only — add:
smartsupp('marketingConsent', true);
This enables the cookies that store how many times a visitor has been to your site (needed so operators see the visit count). If the visitor doesn't consent, chatbots and automatic messages still work.
All cookies — add:
smartsupp('analyticsConsent', true);
smartsupp('marketingConsent', true);
If the visitor refuses
Marketing cookies — add:
smartsupp('marketingConsent', false);
Refusing immediately deletes the ssupp.visit cookie used to count visits. Chatbots and automatic messages are not affected.
All cookies — add:
smartsupp('analyticsConsent', false);
smartsupp('marketingConsent', false);
Example with Cookiebot
If you manage cookies with Cookiebot, this script wires its consent events to Smartsupp:
window.addEventListener('CookiebotOnAccept', function (e) {
if (Cookiebot.consent.marketing) {
smartsupp('marketingConsent', true);
}
if (Cookiebot.consent.statistics) {
smartsupp('analyticsConsent', true);
}
})
window.addEventListener('CookiebotOnDecline', function (e) {
smartsupp('marketingConsent', false);
smartsupp('analyticsConsent', false);
})
What's next?
Contact collection in compliance with GDPR — collect contact details the GDPR-friendly way.
Block visitor — block unwanted visitors and IP addresses.
Inbox – general settings — categories, channels, notifications, and filtering.
💡 Need more help? Contact our support team — we're happy to assist!

