Preferences link (v2)
If your site uses the v3 banner
This page describes the v2 banner. For the v3 banner, see "Cookie Preferences" link.
This page explains how to add to the site a link that reopens the preferences panel of the v2 banner.
Who this is for
This page is for you if you prefer a link in the site footer to the banner's preferences button (the shield).
Prerequisites
Before you start, check that:
- the site loads the v2 banner (the
window.AVACYobject exists on the page); - you can edit the site footer.
Steps
- Open the site footer file.
- Add a link with the
onclickattribute.
<footer>
<a href="javascript:void(0)" onclick="AVACY.showPreferenceCenter('absolute')">Cookie Preferences</a>
</footer>
- Change the link text if needed. The v2 banner does not prescribe the text.
The 'absolute' argument opens the panel as an overlay. Without an argument the v2 banner uses 'inline', and shows the panel inside the element with id oil-preference-center. If the page does not have that element, the panel opens only while the banner is visible.
After the switch to the v3 banner the link keeps working and opens the panel as an overlay.
Verify
- Open the page and choose an option on the banner.
- Press the link in the footer.
- Check that the preferences panel opens.
Common problems
The most frequent issue:
- The link does nothing and the console writes
AVACY is not defined: the banner is not loaded, or the web space was created with the v3 banner, which has nowindow.AVACY. Check the installation snippet. With the v3 banner, use the link from "Cookie Preferences" link.
Last updated: 09/11/2026.