How Campaign Cookies and the Global Cookie Work in OptinMonster

OptinMonster uses cookies to hide OptinMonster from successful conversions and for those who would rather sign up the next time. But you may be wondering, “What is the difference between campaign cookies and the global cookie? And how do I use the cookies in OptinMonster?”

This guide will help explain how both cookies work and how you can use them together to get the most conversions.


How Campaign Specific Cookies Work in a Campaign

Individually, campaigns can be configured to set cookies in the browser based on the visitor’s actions. To configure the individual cookie settings for your campaign, select the Display Settings option in the campaign Builder.

Display Settings

In the Display Settings panel you’ll see the Cookie Duration, Cookie Success Duration, and Cookie Has Seen Duration options.

Cookie Settings

  • Cookie Duration – The length of time before the campaign will display again to the user once they exit your campaign (defaults to 30 days). 
  • Cookie Success Duration – The length of time before the campaign will display again to the user once they successfully opt into your campaign (defaults to 365 days). 
  • Cookie Has Seen Duration – The length of time the “has seen” rule will be true for this campaign.

These cookie settings are for this particular campaign ONLY.

You have the option of setting one cookie value that controls how often the campaign loads whether the user exits or opts into your campaign, and a second option with the Cookie Success Duration to control how often the campaign appears again after the visitor has opted into your campaign.

Also, if they sign up on your first campaign they could still see your other campaigns you’ve set to load across your site.

Session Cookies

If you set the cookie duration to session cookies, the campaign will only set a cookie for the user’s session.

Session Cookie Duration

A session usually ends when the user closes the browser.

No Cookies

If you set the cookie duration to no cookies, the campaign will not set any cookies for that campaign.

No Cookie Duration

If the user closes the campaign but meets the criteria to trigger the campaign again in the same visit, they will continue to see the campaign.

NOTE: Continually showing a campaign has the potential to annoy visitors and negatively impact their browsing session. Use sparingly or consider setting session cookies instead.

How the Global Cookies Work

Global Cookies work across all of the campaigns on your site. You can find it by selecting the User Icon on your dashboard.

Click on Account Name

Next, select Sites.

Choose Sites From Menu

Find the domain, and click its Edit button.

Choose Edit Button

On the next page, you can then set the Global Interaction Cookie and the Global Success Cookie.

Global Cookie Settings

  • Global Interaction Cookie: Entering a number of days (e.g. 30) will set a global cookie once any campaign has been closed by the user. This global cookie will prevent any other campaigns from loading on your site for that visitor until the cookie expires. Defaults to 0 (no global interaction cookie).
  • Global Success Cookie: Entering a number of days (e.g. 30) will set a global cookie once any campaign has resulted in a successful conversion. This global cookie will prevent any other campaigns from loading on your site for that visitor until the cookie expires. Defaults to 0 (no global success cookie).

Global Cookies allow you to prevent ANY campaigns from being seen based on the visitor’s actions. Even if you have 150 different campaigns across your site.

How to Use Campaign Cookies in Conjunction with the Global Cookie

Now you may be wondering: “How can I use the individual and global cookie options successfully?” Since the goal is to convert leads, then once you have a lead, you probably don’t need to interrupt their experience with campaigns anymore. Therefore, you could do the following:

  • Campaign Cookie: 7 Days
  • Global Success Cookie option (for the site): 90 days.

In this setup, you give the user opportunities to sign-up via each campaign once-a-week. But once they do sign-up, they won’t see any campaigns for 3 months! During this time, you can begin drip marketing strategies, etc.

Do you have subdomains that use the same campaigns? Check out our article on how to make campaign cookies persist across subdomains!


Frequently Asked Questions

Q: How do the session cookies work?

A: If you set the campaign cookie duration to session cookies, the campaign will only set session cookies. This allows for MonsterChain functionality as well as prevents the campaign from showing to the user continuously as they browse your site.

OptinMonster Session cookies are deleted after 10 minutes of inactivity.


Q: Can I make campaign cookies persist across subdomains? If someone closes a campaign on ‘blog.domain.com’ can I also hide that campaign from ‘shop.domain.com’?

A: Yes, you can do this with our cross subdomain cookies feature!