Skip to main content

Integration via HTML code


Integrating the Avacy cookie banner via HTML snippet is a viable solution if you have direct access to your website's source code or if you don't use a CMS or other framework for developing websites or web applications. In this case, you will need to insert the snippet provided by Avacy directly into the code of your web page. 

The snippet can be found in the platform settings under the heading Integrate the banner on your web space, selecting the HTML code option from the options available in the drop-down menu and copying the code shown.

It is important that the snippet is placed as high as possible in the <head> of your HTML document, before any other scripts or tags that load external resources. This ensures that all other scripts on the site are handled correctly by Avacy, respecting the user's consent preferences.

Once you paste the HTML code into the page, the banner will automatically be visible on your website.

This mode can be reused if you want to integrate the cookie banner on some technologies (such as Magento, Elementor or Shopify...) that are not currently supported natively. Below, we show you some non-native implementations using the snippet.