{"id":16397,"date":"2025-09-15T16:52:12","date_gmt":"2025-09-15T14:52:12","guid":{"rendered":"https:\/\/surver.nl\/?post_type=kennisbank&#038;p=16397"},"modified":"2025-09-15T16:57:54","modified_gmt":"2025-09-15T14:57:54","slug":"cookiebot-wordpress-implement","status":"publish","type":"kennisbank","link":"https:\/\/surver.nl\/en\/kennisbank\/cookiebot-wordpress-implementeren\/","title":{"rendered":"Implementing Cookiebot in WordPress without a plug-in"},"content":{"rendered":"<figure class=\"wp-block-image size-full\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"1024\" src=\"https:\/\/surver.nl\/wp-content\/uploads\/2025\/09\/ChatGPT-Image-15-sep-2025-16_51_36-1-1.png\" alt=\"\" class=\"wp-image-16827\" srcset=\"https:\/\/surver.nl\/wp-content\/uploads\/2025\/09\/ChatGPT-Image-15-sep-2025-16_51_36-1-1.png 1024w, https:\/\/surver.nl\/wp-content\/uploads\/2025\/09\/ChatGPT-Image-15-sep-2025-16_51_36-1-1-300x300.png 300w, https:\/\/surver.nl\/wp-content\/uploads\/2025\/09\/ChatGPT-Image-15-sep-2025-16_51_36-1-1-150x150.png 150w, https:\/\/surver.nl\/wp-content\/uploads\/2025\/09\/ChatGPT-Image-15-sep-2025-16_51_36-1-1-768x768.png 768w, https:\/\/surver.nl\/wp-content\/uploads\/2025\/09\/ChatGPT-Image-15-sep-2025-16_51_36-1-1-12x12.png 12w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Any WordPress site that sets cookies, such as for Google Analytics, YouTube or marketing pixels - must first ask visitors for permission to do so. This is required by the AVG (GDPR) and also gives your visitors more confidence.<\/p>\n\n\n\n<p>With a plugin you can easily arrange this, but not everyone wants to install yet another plugin. Plugins can make your site slower or conflict with other components. Therefore you can also <strong>manual integration<\/strong>. Cookiebot automatically scans which cookies your site uses and ensures that your banner and statement are always up to date.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How to implement Cookiebot manually in WordPress?<\/h2>\n\n\n\n<p>It may sound technical, but with the right steps, you can add Cookiebot just fine without a plugin. Below we explain how to do that.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"> 1. Create a Cookiebot account<\/h3>\n\n\n\n<p>Go to <a href=\"https:\/\/www.cookiebot.com\" target=\"_blank\" rel=\"noopener\">Cookiebot<\/a> and create an account. Add your domain under <em>Domains &amp; Aliases<\/em> and wait for the scan to complete.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">2. Set your cookie banner<\/h3>\n\n\n\n<p>In the Cookiebot Manager, you control how your banner looks. Under <em>Configuration<\/em> choose your style and position, and through the tab <em>Content<\/em> adapt the texts.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">3. Add the Cookiebot script to your theme<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Log in to WordPress and go to <strong>View \u2192 Theme editor<\/strong>.<\/li>\n\n\n\n<li>Open the file <strong>header.php<\/strong>.<\/li>\n\n\n\n<li>Paste the script from your Cookiebot account just before the line <code>&lt;?php wp_head(); ?&gt;<\/code>.<\/li>\n<\/ul>\n\n\n\n<p>This will load the cookie banner first.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">4. Place the cookie statement on a page<\/h3>\n\n\n\n<p>Want to give visitors an overview of all cookies? Create a separate page, for example <em>Cookie Statement<\/em>, and paste the second script from your Cookiebot account there.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">5. Test your implementation<\/h3>\n\n\n\n<p>Open your site in an incognito window and check if the banner appears. In your Cookiebot dashboard, you can use <em>Scan again<\/em> let you search for cookies again.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">For advanced users: loading cookies only after consent<\/h3>\n\n\n\n<p>Use manual blocking mode if you want to activate cookies only after agreement. To do so, add to your scripts the attribute <code>type=\"text\/plain\"<\/code> and <code>data-cookieconsent<\/code> toe.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What should you look out for in manual implementation?<\/h2>\n\n\n\n<p>Inserting Cookiebot manually into your theme yourself gives you a lot of freedom, but also requires care. It is not enough just to paste the script: the order in which it is loaded and how you deal with other scripts are crucial. If you get this wrong, cookies may still be placed without permission or certain features of your site may not work properly. That's why it's smart to keep a few key considerations in mind when implementing manually:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Load the consent script first<\/strong><br>Always place the Cookiebot script at the top of your header, before other scripts. This will prevent cookies from being active before a visitor can give permission.<\/li>\n\n\n\n<li><strong>Be mindful of plugins that set cookies<\/strong><br>WordPress plugins that use cookies themselves are not always automatically covered by Cookiebot. In that case, you should mark their scripts so that they start only after permission.<\/li>\n\n\n\n<li><strong>Know that you can always fall back on the plugin<\/strong><br>Do you find the manual method too complicated or find that there are too many separate scripts to manage? Then you can always switch to the official Cookiebot plugin.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Getting started yourself or getting help<\/h2>\n\n\n\n<p>With the steps above, you can add Cookiebot to your WordPress site without a plugin. That gives you a lot of freedom, but it also requires diligence. Can't manage or prefer to outsource this kind of technical task? Then take a look at our <a href=\"https:\/\/surver.nl\/en\/services\/webmaster-service\/\">webmaster service<\/a>. This ensures that your site remains secure, fast and compliant.<\/p>\n\n\n\n<p><\/p>","protected":false},"excerpt":{"rendered":"<p>Elke WordPress-site die cookies plaatst, zoals voor Google Analytics, YouTube of marketingpixels \u2013 moet bezoekers daar eerst toestemming voor vragen. Dat is verplicht volgens de AVG (GDPR) en geeft je bezoekers ook meer vertrouwen. Met een plugin kun je dit eenvoudig regelen, maar niet iedereen wil n\u00f3g een plugin installeren. Plugins kunnen je site trager [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":16827,"template":"","meta":{"_acf_changed":false,"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}}},"kennisbank_categorieen":[62],"class_list":["post-16397","kennisbank","type-kennisbank","status-publish","has-post-thumbnail","hentry","kennisbank_categorieen-wordpress"],"acf":[],"_links":{"self":[{"href":"https:\/\/surver.nl\/en\/wp-json\/wp\/v2\/kennisbank\/16397","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/surver.nl\/en\/wp-json\/wp\/v2\/kennisbank"}],"about":[{"href":"https:\/\/surver.nl\/en\/wp-json\/wp\/v2\/types\/kennisbank"}],"author":[{"embeddable":true,"href":"https:\/\/surver.nl\/en\/wp-json\/wp\/v2\/users\/2"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/surver.nl\/en\/wp-json\/wp\/v2\/media\/16827"}],"wp:attachment":[{"href":"https:\/\/surver.nl\/en\/wp-json\/wp\/v2\/media?parent=16397"}],"wp:term":[{"taxonomy":"kennisbank_categorieen","embeddable":true,"href":"https:\/\/surver.nl\/en\/wp-json\/wp\/v2\/kennisbank_categorieen?post=16397"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}