Installing the Osano.js
After creating and publishing your configuration, the "Get Code" button will become active. This button will provide you with the osano.js.
To install, copy, and paste the osano.js into the page head [<head>] for all sites you wish to monitor. Ensure that the osano.js is the first script that loads on your site.
Osano is platform-agnostic, which means the code can be added to the <head> of any site and utilized without any additional configuration.
Once the osano.js is in your site's <head>, it can take a few minutes to a few hours before the script has captured and reported cookies and scripts that exist across your sites.
Once you have collected enough reports from osano.js, you can work with your other business units to identify and classify all cookies/scripts/and local storage items. This exercise ensures that no "strictly necessary" scripts, cookies, or local storage get blocked.
We recommend users remain in "Listener" mode until you have added the osano.js to your site and have discovered and classified all relevant scripts and cookies.
In Listener mode, the consent manager will NOT block any scripts or beacons. It will NOT delete cookies. It will NOT display dialogs to your visitors. In other words, it will not alter your site in any way. You can use Osano in "Listener" mode and another CMP simultaneously if you migrate away from another provider. This way, there are no gaps in compliance.
After you have categorized each script and cookie appropriately, you can enable Permissive or Strict Mode and publish these changes.
You will now see the consent dialog on your website!
Magento
To add the Osano script to your Magento 2 site, you can utilize the "HTML Head" section.
Log in to your Magento Admin panel.
Go to "Content" >> "Configuration."
Select Global to add the Osano script to every store view (or choose the store view to add the Osano code).
Find the HTML Head section and paste the osano.js into the "Scripts and Style Sheets" entry field.
Save changes to your configuration.
Be sure to clear your Magento cache after making these changes to ensure they are published out. You can read more about adding code to your Magento account HERE.