By default, Wisepops uses persistent cookies to remember visitors across sessions. In regions like the EU, you need visitor consent before tracking them long-term. Cookie Consent Mode lets you display campaigns to visitors while respecting their privacy choices.
When to use this feature
You need Cookie Consent Mode if:
Your website operates in the EU or other regions requiring opt-in cookie consent,
You use a cookie consent banner (like Cookiebot, OneTrust, Shopify, or custom solutions),
You want to show campaigns to visitors before they accept cookies.
How it works
Cookie Consent Mode has two states that control how Wisepops tracks visitors:
Granted (default)
Wisepops uses persistent cookies that remember visitors across sessions,
All targeting features work normally,
Visitor behavior is tracked long-term,
This is the default state if no configuration is provided.
Denied
Wisepops uses session-only cookies that expire when the browser closes,
Some targeting options don't work: returning visitors, past URL history, "don't show if already signed up",
No long-term tracking occurs.
π Event without consent, visitors start seeing campaigns immediately. What changes is whether Wisepops remembers them across sessions.
Implementation
Shopify users: You don't need to configure anything. Wisepops automatically follows your Shopify Customer Privacy settings. Jump to Shopify section.
Step 1: Set default consent to denied
Add this configuration at the end of your Wisepops setup code, before the closing </script> tag:
wisepops('options', { defaultConsent: 'denied' });
Like this:
Step 2: Grant consent when visitors accept cookies
When a visitor clicks "Accept" on your cookie banner, call:
wisepops('consent', 'granted');
Once granted, Wisepops automatically converts session cookies to persistent cookies and remembers this choice for future visits.
You cannot revoke consent programmatically. Calling wisepops('consent', 'denied') produces an error.
Implementation example
Here's a typical implementation that sets the consent as denied by default, and grants it when the visitor accepts it:
<script>
// Your Wisepops initialization code here
// Consent configuration inside the setup script
wisepops('options', { defaultConsent: 'denied' });
</script>
<script>
// Somewhere else in your page, handle consent approval
document.getElementById('accept-cookies').addEventListener('click', function() {
wisepops('consent', 'granted');
});
</script>
Shopify integration
Wisepops automatically integrates with Shopify's Customer Privacy. No code needed.
βWhat happens automatically:
Wisepops detects if visitors have accepted cookies in Shopify,
Cookie behavior adjusts based on your Shopify privacy settings,
Everything works without manual configuration.
To review your settings:
Go to Settings > Customer privacy in your Shopify admin,
Verify that your cookie banner is enabled,
Ensure that your settings comply with your legal obligations.
Need to disable Shopify customer privacy integration? Contact our support team if you want Wisepops to ignore the Shopify's Customer Privacy API.
Campaign targeting with denied consent
When consent is denied, these targeting features don't work because they require persistent visitor identification:
Returning visitor detection,
Past URL browsing history,
"Don't display if already signed up",
"Don't display if already converted",
Frequency capping across sessions.
What still works:
Current session URL targeting,
Device type, browser, location targeting,
Time-based scheduling,
Campaigns targeting new/unknown visitors.
Plan your campaigns accordingly if you expect visitors to browse without accepting cookies.
Troubleshooting
Campaigns not displaying after setup
Check browser console for JavaScript errors,
Test in an incognito window to simulate a new visitor.
Targeting not working as expected
Verify
defaultConsent: 'denied'is placed inside the Wisepops setup script, not in a separate<script>tag.Confirm visitors have actually granted consent (check browser cookies for Wisepops persistent cookies),
Remember that denied consent disables cross-session targeting features.
Testing both states
Denied state: Open incognito window, don't accept cookies,
Granted state: Accept cookies, close browser, return to site.
Privacy compliance
Cookie Consent Mode helps you comply with GDPR, CCPA, and similar regulations by preventing long-term tracking without consent.
βThis feature alone doesn't guarantee compliance. You must also:
Clearly explain cookie usage in your privacy policy,
Provide a functional cookie consent banner,
Only call
wisepops('consent', 'granted')after explicit visitor action,Give visitors genuine choice (pre-checked boxes don't count as consent),
Maintains appropriate records of consent.
Legal disclaimer: Wisepops provides tools to respect privacy preferences. You're responsible for implementing consent collection and ensuring compliance with applicable laws.

