`shoman/module-onetrust`
- Module to integrate OneTrust Cookie Script and put the tracking script just after the opening tag.
- Compatible with Magento 2.2.x, 2.3.x, 2.4.x
* = in production please use the --keep-generated
option
- Unzip the zip file in
app/code/Shoman
- Enable the module by running
php bin/magento module:enable Shoman_OneTrust
- Apply database updates by running
php bin/magento setup:upgrade
* - Flush the cache by running
php bin/magento cache:flush
- Make the module available in a composer repository for example:
- private repository
repo.magento.com
- public repository
packagist.org
- public github repository as vcs
- private repository
- Add the composer repository to the configuration by running
composer config repositories.repo.magento.com composer https://repo.magento.com/
- Install the module composer by running
composer require shoman/module-onetrust
- enable the module by running
php bin/magento module:enable Shoman_OneTrust
- apply database updates by running
php bin/magento setup:upgrade
* - Flush the cache by running
php bin/magento cache:flush
-
Enabled (onetrust/general/is_enabled)
-
Site ID (onetrust/general/siteid)
- This module adds the OneTrust tracking script right after the opening tag and before the Magento 2 core requireJS.