Implement with Magento 2.x
- Go to Admin Panel in Magento
- Navigate to:
Content > Design > Configuration - Choose the Store View
- Click “Edit” on the appropriate store view (or Global / Default if you want it to apply everywhere)
- Go to “HTML Head” Section
- Find the field:
Scripts and Style Sheets - Paste our main installation script:
<script id="CookieConsent" src="https://policy.app.cookieinformation.com/uc.js" data-culture="EN" type="text/javascript"></script>
Note: The attribute data-culture = “EN” controls the language in which the popup will appear on the page – in this example, it will be displayed in English. To change the language, set the data-culture attribute to a different language code. For more details, see this article.
- Save the configuration
- Clear the cache: Go to
System > Cache Managementand clear the cache for changes to take effect.