Add ConsentPop
to your website.
We’ll walk you through setup. Then ConsentPop can save visitor choices and keep your cookie settings in one place.
Add your website.
In your dashboard, add your website and open Cookie settings. Choose your banner’s words, cookie groups, and style.
Open dashboardAdd your install code.
Copy your site’s install code from the dashboard into your website’s head section. The example below needs your own site key.
<script src="https://cdn.consentpop.com/consentpop.min.js" data-api-key="YOUR_API_KEY" defer></script>We’ll show you where to paste your code. You don’t need to change the code itself.
If you use WordPress, Shopify, Wix, Webflow, or another builder, use its custom code or head-code setting. Access to custom code can depend on your builder’s plan.
Connect optional cookies.
The notice alone does not stop every cookie. Mark supported optional scripts before they run, using the categories and services saved in your dashboard.
<script type="text/plain" data-category="analytics" data-service="yourAnalyticsService" src="YOUR_SCRIPT_URL"></script>Replace the service name and script URL. Keep
type="text/plain"so this script waits for permission. Categories can be analytics, marketing, or functionality.Using Google tags or other integrations?
Use the Google Consent Mode snippet from your dashboard before Google tags. Tag managers and scripts added later need their own consent setup. If a service is already running, withdrawing consent can also require that service’s shutdown or reload steps.
Give visitors a way back.
Visitors need a way to change their choice. You can use the settings button or add your own link. The floating button is hidden by default. This example opens their cookie settings.
<button type="button" onclick="window.ConsentPop?.showPreferences()">Cookie preferences</button>Check your website.
Try declining, accepting, and changing preferences. Check that connected cookies follow the choice, the notice stays out of the way on return visits, and consent records appear in your dashboard.
After installation, change your notice wording, colors, and cookie categories from the dashboard without editing the install code. New optional tools still need to be connected, and your privacy information needs to stay accurate.
Get setup help