Integrations

Learn how to install cookie consent banner and privacy policy in Magento
Installation instructions for Magento2
Step 1

Log in as the administrator on your Magento2 Website.

login
Step 2

1: Go to the "Content" tab in Left menu.

2: Click on "Configuration" in sub-categories.

login
Step 3

Click the "Edit" tab.

login
Step 4

A New window will open. Click"HTML Head" .

login
Step 5

1: Paste the Seers Cookie Consent script in the box provided in front of "Scripts and Style Sheets".

2: Click on the "Save and Continue" button on the top-right corner of the page.

login

You will see the message "You saved the configuration".

login
Step 6

1: Go to "System" tab in Left menu.

2: Click on "Cache Management" in sub-categories.

login
Step 7

1: Select all configuration files

2: Click the "Submit" button

3: Click "Flush Magento Cache" to save the setting.

login
Verify:

Go to your Magento2 site banner will appear.

Manually implementing prior consent:

Our script automatically blocks cookies and apply prior consent of known scripts, but if you didn’t find yours script blocked, you can block it manually: here is an example of how you can manually blocks
Google Analytics script

To enable prior consent, add attribute “data-cookieconsent” in script tags which sets cookies. You can use comma to separate the categories “preferences”, “statistics”, “necessary”, “unclassified” and “marketing” according to the type of cookies that script generates. Secondly change the attribute “type” from “text/javascript” to “text/plain”. e.g. Applying prior consent on Google Analytics: In the Header Code field, find the Google Analytics code which looks like below:

Before:

< script> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,'script','//www.google-analytics.com/analytics.js','ga');

ga('create', 'UA-00000000-0', 'auto');

ga('send', 'pageview'); < /script>

After (in bold):

< script type="text/plain" data-cookieconsent="statistics"> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,'script','//www.google-analytics.com/analytics.js','ga');

ga('create', 'UA-00000000-0', 'auto');

ga('send', 'pageview'); < /script>