consetgo for a PHP website
On a website without a CMS or with another PHP system you install the module by hand: one folder and one line of code.
Requirements
PHP 7.2 or newer, access to the site files (FTP or hosting panel).
Installation step by step
- Download consent-x.y.z.zip from your consetgo account and upload the consent folder to the site root.
- Open the site’s start file (usually index.php in the site root) and on the second line, right below <?php, paste the line from the box below. If the site has other PHP files opened directly (e.g. contact.php), add the line there too.
<?php require_once __DIR__ . '/consent/bootstrap.php'; … - Optionally add a footer link: <a href="#" data-consent-open>Cookie settings</a> – the banner also has a settings icon.
You download the package from your consetgo account after adding a domain. Create an account →
After installation
- Open your-site/consent/panel.php. In the “License key” field, enter the domain’s licence key from your consetgo account and set a password – the licence activates itself.
- In the Scanner tab click “Enable scan mode”, then “Open the site in scan mode” and visit a few pages (home page, offer, contact, cart). The file scan is for advanced users.
- Check services and categories, then the banner appearance and texts.
Tracking scripts: two ways
- Scanner – the code of GTM, GA4, a pixel or another service is already on the site (in the theme, in a plugin, pasted by hand). The scanner finds it and the module blocks it until consent – you enter nothing.
- By hand – the code is not on the site yet. In the “Services and scripts” tab expand the service and enter its ID in the “Code” field (e.g. G-XXXXXXXXXX for GA4), or add your own JavaScript in the “Custom scripts” section of the same tab. The module adds the code to the site itself after consent.
Good to know
On pages fully served from an HTML cache (without running PHP) blocking does not work – the panel then shows “limited mode”.
Try consetgo on your website
14 days free. Installation takes a few minutes.
Try it free for 14 days