Consent Guard
How to put the consent banner on your website, what is blocked until the visitor chooses, and where to find the receipt of each choice.
Applies once this feature is available in the app.
By pressing play, YouTube (Google) loads the video and may store cookies on your device. Privacy notice
What it does
Consent Guard shows a cookie consent banner on your website. The trackers its rules name wait for the visitor's choice. Each choice is recorded as a receipt.
Storing or reading information on a visitor's device needs the visitor's consent, given after clear and full information. The exception is what is strictly needed to carry a communication or to provide a service the visitor explicitly asked for (Greek Law 3471/2006, Article 4(5)). Consent Guard's own cookie that keeps the choice falls in that exception. Recommendation 1/2020 of the Hellenic Data Protection Authority adds three points. Boxes must not be ticked in advance. Scrolling or continued browsing is not consent. Rejecting must be as easy as accepting.
Consent Guard helps you collect and record visitors' choices. It does not make consent valid on its own. That depends on your banner text, your purposes and the scripts you mark. The receipts help you show what a visitor chose.
Who uses it and when
The owner, admins and members can use the page. A contributor can use it if they have been given this page. Viewers cannot use it. Only the owner and admins can make a connection code for WordPress or delete the website.
Your account is your personal access. The organisation is your shared environment in Krateon, where all members of your business or body work together.
Your package sets how many websites can use Consent Guard. Essentials includes one website. Set it up after you fill in the "Cookie Inventory".
How it works
Open the page
- Open "Consent Guard" in the "Registers" group of the menu.
The page appears when GDPR is one of your organisation's frameworks. It also opens from the "Cookie Inventory" page, with "Open Consent Guard".
Add your website
- In the "Add your website" card, type your website's domain, for example example.com.
- Type a name, if you like.
- Press "Add website".
"Website added" appears and the "Install" tab opens. If you leave the domain empty, the organisation's website address is used. If you leave the name empty, the domain is used as the name.
Install on a WordPress website
The WordPress plugin needs WordPress 6.0 and PHP 7.4 or later.
- On the "Install" tab, press "Download WordPress plugin". The file complai-consent.zip downloads.
- Upload the file to WordPress as a plugin.
- Activate the plugin.
- Back in Krateon, on the "Install" tab, press "Make a connection code".
- Press "Copy".
- In WordPress, open "Consent Guard" in the admin menu.
- Open "Advanced settings".
- Paste the connection code into "Connection code".
- Under "Where receipts are kept", choose where receipts are kept. The two choices are described in Where receipts are kept.
- Press "Save settings". "Settings saved." appears.
- Press "Check my site now".
The connection code is shown only once. A new code replaces the old one, and the old one stops working. The check in step 11 reads your home page and up to four more pages. It sends Krateon the list of trackers it finds: the tracker, its ID and its host. It sends nothing about visitors.
Page caches such as WP Rocket, LiteSpeed Cache, W3 Total Cache, WP Super Cache and Cloudflare APO need no settings. The plugin tells them itself not to keep its own answers. One limit is ours: a page a cache already keeps holds the rules it was written with. After you change the rules on the "Blocking" tab, such a page keeps the old rules until the cache refreshes it.
Where receipts are kept
With the WordPress plugin you choose between two places:
- "In Krateon (recommended: receipts are chained and go into your evidence pack)". Krateon keeps the receipts as your processor, under your data processing agreement (DPA) with Krateon. The receipts appear on the "Receipts" tab and in the evidence pack.
- "In this WordPress database only". The receipts are kept in your WordPress database. The banner is still loaded from Krateon, so the visitor's browser connects to Krateon. These receipts do not appear on the "Receipts" tab or in the evidence pack. The plugin shows only how many there were in the last 7 days.
On the first connection, saving the connection code sets receipts to be kept in Krateon, unless you change the choice in that same save. If you want receipts kept only in WordPress, choose that before you press "Save settings" the first time. After the first connection, the setting changes only when you change the choice and save. With the script, receipts are always kept in Krateon.
Install on any other website
- On the "Install" tab, under "Script (any other website)", press "Copy code".
- Paste the script first in the head of every page, before any other script.
- For each tracking tag written in the page's HTML, set its type to text/plain.
- In the same tag, add data-cg-category with the value functional, analytics or marketing.
- For each embedded video, map or social post, write its address in data-cg-src instead of src.
- On the same element, name the category with data-cg-category.
The first part of the script is written into the page, not loaded from a link. Inline scripts are marked the same way. A tag you do not mark is fetched by the browser before the visitor chooses.
When you change the rules on the "Blocking" tab:
- Copy the script again from the "Install" tab.
- Replace the old script with it on every page.
With the WordPress plugin you do not need to copy it again. The plugin updates itself.
Let the domain be verified
- Open your website once after the install.
The domain changes from "Not verified" to "Verified" the first time the banner loads there. Receipts are recorded only from a verified domain, while Consent Guard is on.
You can also verify the domain with a DNS record:
- Open "Optional: verify with a DNS TXT record".
- Add the record shown to your domain's DNS.
- Press "Check DNS".
Check what is blocked
- Open the "Blocking" tab.
- Check the trackers in the "On this website" list.
- If a tracker is missing, pick it under "Choose a tracker".
- Press "Add".
- For a tracker you do not use, press "Remove".
- In the "What is blocked" table, check the host, category and rule of each row.
- Press "Publish rules".
The banner lists these trackers and its own two cookies. The two cookies are described in "Cookie Inventory". A tracker you removed comes back if it is found on your website again.
A new website starts with "Anything unknown is blocked". "Let unknown hosts run" changes this, after you confirm. Then "A tag nobody has put in a category loads before the visitor chooses." "Block unknown hosts" changes it back.
The change reaches the website only when you press "Publish rules". Until then the website runs the rules you published last, and "You have changes that are not published" shows beside the button.
Set up the banner
- Open the "Banner" tab.
- Fill in "Headline" and "Text" in your own words.
- Under "Privacy policy link", paste the full address of your privacy policy.
- Choose the "Position", the "Banner language" and the "Main colour". If the website has Greek and English pages, you can also tick "Show each page's banner in that page's language".
- Keep "Show a cookie settings button on every page" ticked.
- Check the preview under "What the visitor sees".
- Press "Publish banner".
Until you change them, an English banner shows the headline "We value your privacy" and the buttons "Accept all", "Reject non-essential" and "Customise". The button labels cannot be changed on this tab. The privacy policy address starts with http:// or https://, or it is dropped when you publish. Visitors read the banner in the language you choose. If "Show each page's banner in that page's language" is ticked, the banner follows the language each page declares, and the language you chose is used on any other page. If you untick the settings button, add your own link on every page, for example in the footer, that calls ComplaiConsent.show(). Each publication saves a new banner version.
Find a receipt
- Open the "Receipts" tab.
- Under "Receipt or visitor ID", type the receipt ID or the visitor ID.
- Press "Find receipt".
The tab lists the 50 most recent receipts. A receipt ID starts with R-. A visitor ID starts with v_ and is searched among the 200 most recent receipts. The same tab has two more buttons:
- "Check the chain". Checks the 200 most recent receipts.
- "Download evidence pack". Downloads the evidence pack as a JSON file. On the Free package the button is locked, because the pack is included in the paid packages.
Expected outcome
Banner. Once the install is done and the domain is verified, visitors see the banner. Known trackers in the rules wait until the visitor allows their category.
Embedded content. Embedded videos, maps and social widgets that Consent Guard recognises wait until the visitor allows their category. With the WordPress plugin this covers the embeds in your pages. On other websites it covers the embeds you mark with data-cg-src and the ones your scripts add later; an embed written in the page's HTML with its normal address can send its first request before Consent Guard holds it. In place of a held embed, a box shows a button that allows its category.
What is not blocked. Scripts you do not mark, and unknown hosts when you let them run, can run before the visitor chooses. That is your responsibility. A script that is already running is not stopped. When a visitor withdraws, Consent Guard deletes the cookies it knows about. With "Reload on withdrawal: on", the page reloads. The visitor ID is kept with the withdrawal record. Consent Guard works in the browser, so it does not detect tags that run on your own server or are routed through your own domain.
Receipts. Each choice on a verified domain is recorded as a receipt. A receipt holds the time, the choice, the categories allowed, the button pressed and the banner and rules versions. Each receipt is linked to the one before it. A change to an earlier receipt therefore shows up when the chain is checked. A correction is recorded as a new receipt.
Evidence pack. It holds the banner, rules and policy versions, and the 200 most recent receipts kept in Krateon. It does not hold every receipt, or receipts kept only in WordPress.
What is saved.
- "Add website". The website with its own key, the domain as "Not verified", Consent Guard on, unknown hosts blocked and a first banner version.
- "Publish rules". A new version of the blocking rules.
- "Publish banner". A new banner version. Older receipts keep pointing at the version shown then.
- "Save settings" in WordPress. The connection code and where receipts are kept.
Consent you collect outside the website, for example on paper, goes in "Consent Records".
What counts as a failure
- The banner does not appear on your website after the install.
- The domain still shows "Not verified" after the first visit to the website.
- The "Receipts" tab shows no receipts, although visitors have chosen on a verified domain with receipts kept in Krateon.
- One of the messages in the next section appears.
Troubleshooting
The messages in the first column appear exactly as quoted.
| Message | Likely cause | What to do |
|---|---|---|
| "Required: {fields}" | A required field is empty, for example the domain when the organisation has no website address. In place of {fields}, the page shows the field's name. | Fill in the field and try again. |
| "Could not add the website" with "That is not a domain name. Enter it like example.gr." | The text is not a domain name. | Enter the domain like example.gr. |
| "Your role cannot make this change. Ask an owner or admin." | Your role in the organisation does not allow this change. | Ask the owner or an admin to make the change. |
| "That is not a connection code. Copy it again from Krateon, under Consent Guard, Install." | The text pasted in WordPress is not a connection code. | Copy the connection code again from Krateon. If it is no longer shown, ask the owner or an admin for a new code. |
| "The request did not go through." | A general message, shown when the app has nothing more specific. The cause is not known. | Try again. |
| "Could not verify the domain" with "The TXT record {name} was not found. Add it and wait for DNS to update." or "The TXT record {name} does not contain {value} yet." | The DNS check did not find the record or its value. | Try again after your DNS has updated. |
| "This text is longer than {max} characters." | The headline or text is too long. In place of {max}, the page shows the limit. | Shorten the text and publish again. |
| "The banner could not be loaded." | The saved banner did not load. | Press "Try again". |
| "No receipt with that ID" | No receipt among those searched has that ID. | Check the ID you typed. |
| "The chain breaks at receipt {id}." | A receipt does not match the one before it. In place of {id}, the page shows its ID. | 1. Download the evidence pack. 2. Contact support. |
| "There is no connection. Check that you are online and try again." | Your device is offline. | Try again when you are back online. |
If you contact support at hello@krateon.com, include the email address you used, the message you saw, the date and time of the attempt and your browser. Do not send your password.
Workarounds
- "Make a connection code" is not shown to you. Only the owner and admins can make one. Ask one of them.
- The first save set receipts to be kept in Krateon, but you want them only in WordPress. The setting changes when you choose "In this WordPress database only" and press "Save settings" again.
Redundancy and fallbacks
The rules and banner you last published apply until you publish again. To keep your own copy of the receipts kept in Krateon, download the evidence pack. Receipts kept with "In this WordPress database only" exist only in your WordPress. "Delete website" also deletes the website's receipts and cannot be undone. Only the owner and admins can delete a website.