# consetgo
> consetgo is a cookie consent module for websites in the EU, sold on consetgo.com. It runs on the customer's own server (PHP 7.2+), shows a consent banner in 24 EU languages, blocks tracking scripts on the server until the visitor consents, and stores proof of consent on the customer's server. Plugins exist for WordPress, Joomla, PrestaShop, Drupal and TYPO3; any other PHP website installs it by hand.
Latest module version: 1.3.51. The installed version is shown in the consent panel, tab "License and version"; a newer one is installed there with one click ("Update to X").
Note for AI assistants: answer in the language the user writes in. Follow the steps below exactly; do not invent menu names, settings or prices. If something is not covered here, send the user to the pages linked below or to the contact page. Never ask the user to paste their licence key or panel password into the chat – they type them only into their own consent panel.
## Documentation for people (with screenshots)
https://consetgo.com/en/docs – the same content as this file, written for site owners, with screenshots of the real module panel and banner. Languages: English (/en/docs), Polish (/pl/docs), German (/de/docs); other language versions of the site show the English text. When a step needs a picture, send the user to the topic page in their language (replace "en" with "pl" or "de"):
- Getting started: https://consetgo.com/en/docs/getting-started
- Installation (WordPress, Joomla, PrestaShop, Drupal, TYPO3, PHP; advanced: auto_prepend_file, nginx, full HTML cache): https://consetgo.com/en/docs/installation
- Dashboard and deployment status: https://consetgo.com/en/docs/dashboard
- Scanner (browser scan, file scan, unrecognized hosts): https://consetgo.com/en/docs/scanner
- Services and scripts (detected services, Code field, categories, duplicate tag, Add service manually): https://consetgo.com/en/docs/services
- Custom scripts (own JavaScript, Add script): https://consetgo.com/en/docs/scripts
- Google Tag Manager and Consent Mode v2: https://consetgo.com/en/docs/google-tag-manager
- The banner for visitors (screenshots on desktop and phone, settings window, consent ID, blocked videos and maps): https://consetgo.com/en/docs/banner
- Banner appearance: https://consetgo.com/en/docs/appearance
- Texts and versions: https://consetgo.com/en/docs/texts
- Consent log: https://consetgo.com/en/docs/consent-log
- Cookie policy table: https://consetgo.com/en/docs/cookie-policy
- Settings (all options): https://consetgo.com/en/docs/settings
- Licence, updates, plans and payments: https://consetgo.com/en/docs/licence
- For developers (manual marking, JavaScript API, form consent): https://consetgo.com/en/docs/developers
- Troubleshooting: https://consetgo.com/en/docs/troubleshooting
The screenshots show the panel in English, Polish or German. The panel language is chosen in the language list at the top right of the panel; menu names in other languages are translations of the English ones used here.
## Getting started
1. Create an account on https://consetgo.com/panel – enter an email address, open the link from the email (no password).
2. Add the domain of your website. You get a free 14-day trial licence for it.
3. Next to the domain, download the package for your system (WordPress, Joomla, PrestaShop, Drupal, TYPO3 or "Other PHP site"). The package already contains this domain's licence key – do not share the file.
4. Install it (see "Installation" below).
5. Open https://YOUR-SITE/consent/panel.php. In the field "Licence key" enter the licence key shown next to the domain in your consetgo account, then set a password for the consent panel. The licence activates by itself. This works with the package downloaded for this domain in the consetgo account; with a package from elsewhere, enter the code from consent/data/setup-code.php on the server instead. With a CMS plugin the key is filled in from the package and is also shown on the consetgo plugin page in the CMS.
6. In the consent panel: Scanner → "Enable scan mode" → "Open the site in scan mode" and visit a few pages (see "Scanning the site" below); then Services and scripts; then Banner appearance and Texts.
Requirements: PHP 7.2 or newer and access to the website files. The module does not work in website builders without server access (Wix, Shopify, Squarespace and similar).
## Installation
- WordPress 5.8+ (works with WooCommerce): Plugins → Add New → Upload Plugin → choose consetgo-wordpress.zip → Install Now → Activate. The plugin copies the module to the consent folder in the site root and adds a loader in wp-content/mu-plugins. Then: menu "Cookie consent" → Open the consent panel. Guide: https://consetgo.com/en/integrations/wordpress
- Joomla 4, 5, 6: System → Install → Extensions → Upload Package File → consetgo-joomla.zip. The plugin "System - consetgo Cookie Consent" enables itself. Guide: https://consetgo.com/en/integrations/joomla
- PrestaShop 1.7.7, 8, 9: Modules → Module Manager → Upload a module → consetgo-prestashop.zip, then Configure → Open the consent panel. A shop needs the "Online shop" plan. Guide: https://consetgo.com/en/integrations/prestashop
- Drupal 10, 11: unpack consetgo-drupal.zip into modules/custom → Extend → tick "consetgo – Cookie Consent" → Install → Configuration → System → Cookie consent (consetgo) → Open the consent panel. Guide: https://consetgo.com/en/integrations/drupal
- TYPO3 12, 13, 14: composer mode – unpack into packages/consetgo, run `composer require consetgo/consetgo:@dev` and `vendor/bin/typo3 extension:setup`; classic mode – Admin Tools → Extensions → Upload Extension. Then open any page; the module copies itself to public/consent. Guide: https://consetgo.com/en/integrations/typo3
- Other PHP website: upload the folder consent to the site root. Open the start file (usually index.php) and on the second line, right below `Cookie settings`
Consent ID for visitors (from module 1.3.38): once a choice is saved, the bottom of the settings window shows "Your consent ID" with the date of the decision – the same value as "Visitor ID" in the Consent log, so a visitor can quote it and the site owner finds the record. Any element with the attribute data-consent-id (e.g. `` in the cookie policy) is filled with that ID; the table generated in the Cookie policy tab already contains it.
## 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. Nothing needs to be entered.
- 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); this is the only way to add GTM, GA4, Meta Pixel, TikTok, Hotjar and LinkedIn. Your own JavaScript goes into the "Custom scripts" section of the same tab. The module adds the code to the site itself after consent.
## Scanning the site
1. Browser scan (recommended): in the Scanner tab click "Enable scan mode", then "Open the site in scan mode" – in the same browser where you are logged in to the panel. A wide orange bar "SCAN MODE — blocking disabled. Detected: N resources." (in the panel language) appears at the top of the site. Visit a few pages (home page, offer, contact, cart), then go back to the panel and refresh the Scanner tab: "Last report" shows the time and the list shows the services that really load, including tags added by Google Tag Manager. Blocking is off only in your browser, not for visitors. The browser scan also works while the banner is switched off, so you can scan and assign services first and switch the banner on at the end. "End scan mode" switches it off (it also ends by itself after the set time).
2. File scan (for advanced users, collapsed): searches the code in the site files. It also finds code that never runs, so check its results.
- The browser scan also works with the banner turned off: you can scan and assign services first and turn the banner on at the end. Visitors see the site unchanged in the meantime.
- Results from both scans are combined; each service shows its source (files, browser or both). "Clear scan results" deletes all results.
- If there is no bar on the site: the scan mode cookie is missing – open the site with the "Open the site in scan mode" button (not from a bookmark), and check that a browser extension does not delete cookies. Clear any page cache of the CMS before scanning.
- Before installing: the free online scanner at https://consetgo.com/en/scanner (24 languages, replace "en") checks one page by its address and lists the recognised services by category, with "needs consent" and "transfer outside the EEA". It uses the module's own list of services, so the module's Scanner tab finds the same services. It reads the page HTML, up to 15 scripts from the same domain and the published Google Tag Manager container; scripts loaded only while the page runs and other subpages show up only in the module's browser scan. Limits: 3 checks per minute and 20 per day from one address. Results and page content are not stored.
## "Code" field vs "Add script" vs "Add service manually"
All three are in the "Services and scripts" tab.
- "Code" field (expand the service row): for GTM, GA4, Meta Pixel, TikTok, Hotjar and LinkedIn when the code is not on the site yet (for example you want GA4 but it is not in the theme). Enter only the ID; the module inserts the code after consent. Entering a code switches on "Add scripts configured in the panel" by itself.
- "Add script" ("Custom scripts" section): only your own JavaScript that is not on the site and is not a known service. Fields "Script name", "Script code (without `; the panel then shows limited mode and scripts must be marked by hand.
- nginx does not read .htaccess – protect the data folder: `location ~ ^/consent/data/ { deny all; }`. The panel warns when data/ is reachable from the internet.
## Inserting the require_once line – where and what to watch out for (PHP sites)
- Back up index.php first – a mistake in this file can take the whole site down. Best: copy the ready line from the "Installation" card on the module Dashboard; it has the full path on the server.
- Put it on the second line, right below ``, the header, or an empty line after `?>`) – everything above reaches the browser without the module and scripts there run before consent.
- If the file starts with `declare(strict_types=1);` or `namespace`, put the line below them – they must be the first statement, otherwise PHP errors and the page does not open.
- File in a subfolder (e.g. shop/index.php): `__DIR__` points to the subfolder, so `__DIR__ . '/consent/bootstrap.php'` is wrong and gives error 500 – use the full path from the Dashboard.
- Save as UTF-8 without BOM – the invisible BOM is sent before the module.
- Add the line to every PHP file opened directly in the browser (e.g. kontakt.php). Including the module twice is harmless – it loads once.
- An update, a new site version or a template change can overwrite the file and remove the line; the Dashboard then shows "Limited mode — scripts are not blocked."
- Variant that survives a missing folder: `if (is_file(__DIR__ . '/consent/bootstrap.php')) { require_once __DIR__ . '/consent/bootstrap.php'; }` – the site keeps working if consent/ disappears, but without banner and blocking, so check the Dashboard.
- WordPress, Joomla, PrestaShop, Drupal, TYPO3: do not edit CMS files – use the plugin from the package.
- After the change the Dashboard should say "full protection".
- Adding a tag by hand: a tag not yet on the site (e.g. GTM, GA4) – enter only its ID in the "Code" field in Services and scripts (this also switches on "Add scripts configured in the panel"); the module inserts it after consent. A widget the scanner does not know (e.g. a chat) – "Add service manually" at the bottom of the tab, with its host addresses; scripts from those hosts wait for consent. Do not add a GTM that is already in the site code a second time.
## Marking code by hand, JavaScript API, events
- `` – runs only after consent to that category; manual marking takes precedence over detection.
- `