Install optzi! on a Wix Website

Add optzi! to Wix Custom Code, create a reliable privacy-choices footer link, publish, and test the live site.

Last updated About 1 month ago

Overview

Add the main optzi! installation code in Wix Custom Code, then add a separate, visible Do Not Sell or Share My Personal Information link in your site footer. The installation code runs optzi! in the background. The footer link gives visitors a way to reopen Cookie Preferences.

Opening Cookie Preferences does not accept, reject, or change consent. A visitor's choices change only when they save a choice in the optzi! panel.

Before you begin

  • Publish your optzi! configuration. In the optzi! dashboard, make sure the site shows Published, not Not published or changes waiting to be published.
  • In the optzi! dashboard, open your site and find Install on your site. Copy the complete installation code shown there. Do not copy code from this article or another website.
  • Your Wix site must be published and have a connected domain before Wix Custom Code can run.
  • Keep the main installation code and the visible footer link as two separate items.

Add the main optzi! installation code

  1. In your Wix site dashboard, go to Settings.
  2. Under Development & integrations, select Custom Code.
  3. Select + Add Custom Code.
  4. Paste the complete code from Install on your site in your optzi! dashboard.
  5. Name the entry optzi!.
  6. Under Add Code to Pages, select All pages.
  7. Select Load code on each new page.
  8. Under Place Code in, select Head.
  9. Open Code Type and select Essential.
  10. Select Apply.
  11. Make sure the optzi! custom-code entry is enabled, then publish your Wix site.
Wix Add Custom Code settings with All pages, Load code on each new page, and Head selected.
Choose All pages and Head, then load the code on each new page.
Wix Code Type tab with Essential selected.
Categorize the optzi! code as Essential.

Wix's Settings → Custom Code area is not the visible footer of your website. Code added there is invisible to visitors.

Add the footer link

  1. Open your site in the Wix editor.
  2. Go to the footer and add or edit a normal text link.
  3. Use the visible text Do Not Sell or Share My Personal Information.
  4. Select the text, choose the Link icon, and choose Web Address.
  5. Enter your complete published website address followed by #optzi-privacy-choices. For example:
    https://www.example.com/#optzi-privacy-choices
    Replace https://www.example.com/ with the homepage address visitors actually use.
  6. Set the link to open in a new tab.
  7. If your Wix footer must be customized separately on each page, add the same link to every page where visitors need it.
  8. Publish the site.

Do not paste an <a> link into Body – End. Wix Custom Code is invisible, so that does not create visible footer text. Do not add inline JavaScript or a link that calls window.__optzi__.

Wix does not accept #optzi-privacy-choices by itself in this field. The tested configuration is the complete website address plus #optzi-privacy-choices, opening in a new tab. Opening in the current tab can be unreliable because Wix may change the address without fully reloading the page.

It is safe—and, for page-specific Wix footers, necessary—to add the same link to every page. In a controlled Wix test, the published footer link opened a new tab and displayed the optzi! Cookie Preferences window successfully.

Update an existing installation

Some older optzi! installation codes continue working but do not update automatically.

  1. In the optzi! dashboard, open your site and find Install on your site.
  2. Copy the latest complete installation code.
  3. In Wix Settings → Custom Code, open the existing optzi! entry.
  4. Replace the entire old installation code with the new code. Do not edit or combine individual pieces.
  5. Confirm All pages, Load code on each new page, Head, and Essential are still selected.
  6. Remove or disable any second, older optzi! installation entry.
  7. Remove any old Optzi Link helper or bridge entry. The normal footer link no longer needs it.
  8. Apply the change and publish the Wix site.

How to test your installation

Test the published website, not only Wix Preview.

  • Open the published site in a new private or incognito window.
  • Confirm the optzi! banner appears for a new visitor.
  • Use the banner to save a choice, then reload or visit another page.
  • Confirm the small returning-visitor launcher appears and reopens the preferences panel.
  • Select the visible Do Not Sell or Share My Personal Information footer link. Confirm it opens a new tab and displays the optzi! Cookie Preferences window. Confirm that opening it alone does not change the saved choice.
  • Test more than one published page.
  • Test essential controls such as purchase, booking, contact, and form-submit buttons.
  • If Wix briefly shows the previous revision, close the private window, open a new one, and try a hard refresh. A hard refresh asks the browser to fetch a fresh copy of the page.

Troubleshooting

The banner appears twice

Open Settings → Custom Code and look for more than one optzi! entry. Keep exactly one current main installation. Also remove an old Optzi Link helper or bridge. Do not remove unrelated Wix or marketing code.

The banner does not appear

  • Confirm the optzi! configuration is published.
  • Confirm the Wix custom-code entry is enabled.
  • Confirm it applies to All pages, uses Load code on each new page, is placed in Head, and is categorized as Essential.
  • Publish the Wix site and test the public domain in a new private window.
  • If you just published, try a hard refresh or wait a few minutes for Wix's older cached revision to clear.

The footer link is missing

Add the link with Wix's visible footer/text editor. Body – End in Custom Code does not create visible footer text.

The footer link does not open Cookie Preferences

Confirm its address is the complete published homepage URL ending in /#optzi-privacy-choices, it is set to open in a new tab, and the main optzi! installation is present and enabled. A fragment-only address is not accepted by Wix, and using the full address in the current tab can be unreliable. Remove any older helper that tries to call optzi! from a separate Wix Custom Code entry; separate entries can run in isolated environments.

An old version still appears

Replace the whole old installation with the current complete code from the optzi! dashboard. Then publish, use a new private window, and hard refresh. Do not edit individual parts of the code.

When to contact optzi! support

Contact optzi! support if one current installation is enabled and published but the banner or Cookie Preferences window still does not work on the public site. Include:

  • your public website address;
  • the page where you tested;
  • what you expected and what happened;
  • your browser and device; and
  • screenshots with private information hidden.

Never send passwords, secret keys, or private account information.

Official Wix references