OptinMonster Documentation

Documentation, Reference Materials, and Tutorials for OptinMonster

Home

Docs

How to Make OptinMonster Cookies Cross Subdomains

How to Make OptinMonster Cookies Cross Subdomains

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:

  1. Navigate to the Display Rules view in the campaign builder.
    Navigate to the Display Rules in the OptinMonster campaign builder.
  2. From the Actions tab of the Ruleset you’re editing, locate the Cookie Settings section and toggle the Cross Subdomain Cookie? option.
    Campaign cookies in the OptinMonster campaign builder.
  3. 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.

Note:

The Subdomain Cookie setting is configured for individual campaigns. Enabling it for one campaign does not automatically enable it for other campaigns in your account.

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’.


If you’re serious about jumpstarting your website business growth, then get started with OptinMonster today!

Get Started With OptinMonster Today!

BONUS: Done-For-You Campaign Setup ($297 value)

Our conversion experts will design 1 free campaign for you to get maximum results – absolutely FREE!

Click here to get started →

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 Cookie Status for the latest details on how cookies are handled in individual browsers.


Still stuck?

How can we help?

Last updated on


Start Getting More
Leads & Sales Today
with OptinMonster!

Create and launch smart capture forms today in minutes. What are you waiting for?

Create and launch smart capture forms
today in minutes. What are you waiting for?

OptinMonster has transformed our business. Before integrating their optins, our clients saw a 2% conversion rate from web traffic, which is slightly above the standard for their industry. With the integration of OptinMonster’s lightbox popup, exit-intent technology, split testing, and other tools, our client’s conversion rates soared by an unprecedented 500%. They attracted substantially more customers while spending less on digital advertising. Their success propelled them to the top of their markets, outperforming national chains and other medical spas with much bigger marketing budgets. Our client’s success in their market has distinguished us in our own. We are now one of the most sought-after marketing firms in the industry of aesthetic medicine. We know that the integration of OptinMonster, more than any other tool or marketing strategy, has supported this growth and achievement.

chris zelig medstar media

Chris Zelig

Partner, Medstar Media

OptinMonster has been a game-changer for us. From driving donations to collecting new leads, there is nothing that this simple tool has failed to accomplish. Our lead collection rate has jumped by over 1,000%.

joe lowe american bird conservancy

Joe Lowe

Director of Digital Communications, American Bird Conservancy

Through OptinMonster’s exit-intent popups, we have more than doubled our sales conversion rate. Best of all is the compound effect of using OptinMonster over a long period of time—more conversions mean more customers, which means more word of mouth.

mitch smith, managing director, shockbyte

Mitch Smith

Managing Director, Shockbyte.com