Drupal 8+
How to integrate Centinel Analytica into your Drupal 8+ website.
Overview
This guide shows how to install, configure, and verify Centinel Analytica protection in Drupal 8+. You'll upload a .TAR.GZ module, enter your keys, choose which areas to protect (front end, REST API), and create a friendly block page.
Get your keys first: Visit your dashboard at https://dash.centinelanalytica.com/integrate and copy your Site Key and Secret Key.
Requirements
- Drupal 8 or higher
- Drupal administrator access.
- Ability to upload and configure modules.
1) Download the module .TAR.GZ
Download Drupal 8+ Module. Keep the file compressed - do not decompress.
2) Upload & activate the module
- Log in as administrator.
- Go to the main menu and click on Extend.
- Click on Install new module.

- Once the module installation is complete, navigate to Configuration and in the menu select Centinel Analytica Settings

- Enter your API keys that you find in the Centinel Analytica Dashboard.

- Site Key paste the value from your dashboard.
- Secret Key paste the value from your dashboard.
- Block Page URL the path users are redirected to when blocked (default:
/block). - Apply protection to check the areas to protect:
- Front End pages protects public pages.
- API protects JSON API routes.
Click Save configuration.
Just in case, you can clear the cache under Configuration > Development > Performance.
3) Verify installation
In Centinel Analytica → Analytics you should soon see traffic being added if you navigate your website.
That's it! You are all done, if you have any questions or issues please don't hesitate to contact us!
Changelog
- 1.2 - Improved drupal specific middleware.
- 1.1 - Added exclude paths option.
- 1.0 - Initial release.