Skip to main content

Which banner your site is using

This page is temporary. It explains how to tell whether a site shows the v2 banner or the v3 banner.

Who it is for​

It is for people who already have the Avacy snippet on their site and don't know which banner responds. If you are installing the banner for the first time, you can skip it, because new web spaces use v3.

The version is chosen per web space​

The version depends on the web space in the dashboard. The snippet on the page does not decide it.

The dashboard shows the same snippet to v2 and v3 web spaces. On every request, the Avacy CDN looks at the web space named in the snippet. For v2 web spaces it responds with a script that starts the v2 banner. For v3 web spaces it responds with the v3 banner loader.

When a web space switches to v3 from the dashboard, the snippet on the site stays the same and starts serving the v3 banner.

How to recognize the version​

In the dashboard​

The dashboard home shows the notice Switch to the new cookie banner v3 if the Team still has v2 web spaces. The See the web spaces to migrate button opens the list of those web spaces. To migrate them, see If you are on the v2 banner.

In the browser console​

  1. Open a page of the site and wait until it finishes loading.

  2. Open the console in the browser's developer tools.

  3. Type this code and press Enter.

    console.log({ v3: Boolean(window.Avacy), v2: Boolean(window.AVACY) });
  4. Read the result.

ResultMeaning
{ v3: true, v2: false }The site shows the v3 banner.
{ v3: false, v2: true }The site shows the v2 banner.
{ v3: true, v2: true }The site shows the v3 banner, on a web space migrated from v2: the v3 banner restores window.AVACY for code written for v2.
{ v3: false, v2: false }The banner did not start. Go to Check that the banner works.

With the v3 banner, window.Avacy.version returns the banner's version number.

In the Network tab​

The developer tools list the files the page downloads. The v3 banner downloads a file named cmpweb-web.esm.js. The v2 banner downloads a file named oil.min.js. Both also download avacy-cmp-web.js, the snippet file: that file does not tell you the version.

If you are on the v2 banner​

To migrate, follow the guide Switch to the new cookie banner (in Italian). If the site has code written for the v2 banner, see Backward compatibility with the v2 banner.


Last updated: 27/10/2026.