HTML Web (Custom)
How to implement Visible Privacy with a custom HTML website.
This installation guide explains how to install Visible Privacy™ Consent directly into your HTML website. If you encounter any problem during the installation, feel free to send an email to [email protected]
Implementing Visible Privacy with HTML
This guide explains how to install Visible Privacy™ Consent directly into your HTML website.
Prerequisites
Before beginning, ensure you have:
- Access to the HTML files of your website.
- Your Visible Privacy Client ID (provided to you by Visible Privacy).
Installing the Visible Privacy Script
Edit Your HTML
Open the main HTML file(s) of your website where you want the consent banner to appear (often an index.html
or template file).
Locate the <head>
tag
Find the <head>
tag in your HTML document.
Add the Visible Privacy Script
Immediately after the opening <head>
tag, paste the following script block:
Replace Placeholder
In the pasted script, replace "MerchantID"
with the actual Client ID provided to you by Visible Privacy. Important: Ensure you keep the double quotes around your Client ID.
Save Changes
Save the modified HTML file(s).
Using your correct Client ID is essential for the banner to load and function correctly.
Placing the script as the very first element within the <head>
tag is highly recommended. This ensures the consent banner loads as quickly as possible, before other scripts that might potentially set cookies or trackers.
After adding the script and saving your changes, the Visible Privacy™ Consent banner should appear on your website when a user visits it for the first time, allowing them to manage their consent preferences.