Showing the same campaign on multiple subdomains and want to hide it on all subdomains once it’s been interacted with or converted? You can do this by making the campaign cookies cross subdomains.
In this article, you’ll learn how to make OptinMonster cookies cross subdomains.
This feature only allows cookies to persist across subdomains, e.g. from ‘blog.domain.com’ to ‘store.domain.com’. Cookies will not persist from one top-level domain to another, such as from ‘domain.com’ to ‘website.com’.
Enable Cross Subdomain Cookies
To make OptinMonster cookies cross subdomains, follow these steps:
- Navigate to the Display Rules view in the campaign builder.
- From the Actions tab of the Ruleset you’re editing, locate the Cookie Settings section and toggle the Cross Subdomain Cookie? option.
- When you’re finished, Save the campaign.
Examples
If you have a campaign set to show on pizza.com, and you have cross subdomain cookies enabled, any cookies related to that campaign will also be visible to pepperoni.pizza.com, ham.pizza.com, and bacon.pizza.com.
If you have a campaign set to show on pepperoni.pizza.com, and you have cross subdomain cookies enabled, any cookies related to that campaign will be visible to pizza.com, ham.pizza.com, and bacon.pizza.com.
FAQs
How can I learn more about cookies?
See our general guide for configuring campaign cookies and global cookies.
You can also find a list of all cookies that OptinMonster uses, which is useful for GDPR and Cookie Consent tool configuration.
Can I make the cookies persist across other top-level domains, not just subdomains?
No, this feature only allows cookies to persist across subdomains, like from ‘blog.domain.com’ to ‘store.domain.com’. Cookies will not persist from one domain to another, such as from ‘domain.com’ to ‘website.com’.
Troubleshooting
I’ve changed the default cookie settings but the new settings aren’t working.
Be sure to test from a brand new Incognito window (aka private browsing session) OR manually clear the cookies from your browser before re-testing a campaign. This will ensure any previously set cookies are removed so the campaign can appear according to the new cookie settings you’ve saved.
My campaigns are reappearing in some browsers before the cookie expiration I set, why?
Some browsers now automatically remove first-party cookies after a specific period of time regardless of the expiration date set, like Safari and Brave.
We recommend you refer to CookieStatus for the latest details on how cookies are handled in individual browsers.
Our conversion experts will design 1 free campaign for you to get maximum results – absolutely FREE! Click here to get started →