Installation
Detailed guide to installing the Consentio widget on your website
Requirements
Consentio does not require any special software or dependencies to work properly. The widget works on all modern browsers:
- Chrome 60+
- Firefox 55+
- Safari 12+
- Edge 79+
- Opera 47+
Obtaining the Installation Code
After adding your website to the Consentio dashboard, you will receive a unique installation code. You can find it under My Websites → your website → Installation.
<script src="https://consentio.cz/widget/YOUR_SCRIPT_KEY/consentio.min.js" async></script>
YOUR_SCRIPT_KEY value is unique to each website.
You can find the key in the dashboard under Installation. Do not use a code from a different website.
Code Placement
Paste the code right after the opening <head> tag, before any Google tag
(gtag.js, Google Tag Manager). Its first part sets Google Consent Mode to denied, and Google tags have to find that already in place:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>My Website</title>
<!-- Consentio: right after <head>, before any Google tag -->
<script src="https://consentio.cz/widget/YOUR_SCRIPT_KEY/consentio.min.js" async></script>
<!-- Google tags and other scripts come after the Consentio code -->
<script>/* Google Analytics etc. */</script>
</head>
<body>
...
</body>
</html>
If the Code Cannot Go First
The scripts you mark are held back wherever the code sits. Google tags are different: one that loads
above the code starts measuring before the visitor has chosen. If you cannot place the code above them,
mark the Google tags with type="text/plain" and data-category so they wait for consent.
Verifying the Installation
After inserting the code, you can verify the installation in several ways:
1. Visual Check
Open your website in an incognito browser window. The cookie banner should appear.
2. DevTools Console
Open Developer Tools (F12) and type this command into the console. It returns the widget version number, for example 1.3.0:
Consentio.version
3. Network Tab
In the Network tab there should be a successful request to consentio.cz/widget/.../consentio.min.js
with a 200 status.
4. Consentio Dashboard
After you click a button in the banner, your choice appears under My Websites → your website → Consent Records.
Troubleshooting
Banner Does Not Appear
- Check that the code is correctly inserted (it should be visible in the page source)
- Verify that the
SCRIPT_KEYin the URL matches your website in the dashboard - Check the console: the warning
Widget not authorized for this domainmeans the page runs on a different domain than the one entered in the dashboard (subdomains are accepted) - If you have already made a choice on the site, the banner does not come back, only the floating button. Try a private window
- A browser that sends Global Privacy Control or Do Not Track is treated as a refusal: no banner, only the floating button
403/404 Error
If the console shows an error while loading the widget, the status code tells you why:
- 404: the key in the script URL does not exist. Copy the code again from the Installation tab (a regenerated key replaces the old one)
- 403: the website is not active in your Consentio account
- With either error the banner does not load; the scripts you marked stay blocked and Google tags stay on denied