OptinMonster is by far the best way to increase your email subscribers, and our users love us for that.
One of the most common requests that we’ve gotten from our users is for the ability to turn off OptinMonster for those who’ve already subscribed to the newsletter.
Why do you need this feature?
Let’s say you add an OptinMonster popup to your site, and you already have existing subscribers. When they visit your site, they will be shown the popup again.
This makes no sense because that user has subscribed already. Sure they can exit it and depending on your cookie duration the popup will not appear for the specified number of days. But what happens after that?
Unless you set really long cookies, the popups can annoy your existing subscribers. Since a lot of our users send out daily/weekly newsletter updates containing links to their blogs, we came up with a solution.
OptinMonster allows you to add a URL parameter to your newsletter links to hide your optins from existing subscribers based on the Global Cookie settings for your domain.
Step 1: Configure Your Global Cookies
The first step is to configure the Global Cookies for your domain to determine which cookies are set to hide your optins. If you haven’t already set Global Cookies for your domain, follow our documentation to complete this step.
Step 2: Add
?omhide=true to URLs
Finally, add ?omhide=true at the end of your URL links when you want to refer visitors to your site and hide the optins based on your Global Cookie settings configured in the previous step.
In your newsletter templates, simply add that parameter to your links.
Q: How does this work exactly?
A: This query string will set either a global cookie based on the settings for your optins and site.
Q: Why do I need to have a Global Cookie set for this to work?
omhide=true query string allows you to manually set a global cookie in the browser for visitors who may not have one already set. This may be the case for subscribers who subscribed before you began using OptinMonster on your site (or before you had a Global Cookie configured for your OptinMonster optins), or they may not have visited your site for a long time and the Global Cookie that was previously set in their browser had already expired.
It’s also possible that the visitor has done some action to manually or automatically clear the cookies from their browser since the last time they visited your site.
If they are reaching your site from a URL in an email newsletter you’re sending out, adding the
omhide=true query guarantees that regardless of the status of their browser’s cookies no optin will be shown to them and a new Global Cookie will be set in their browser without them having to re-subscribe through an optin.
Without any Global Cookie set for your site, then the
omhide=true has nothing it can add to your browser to prevent the popups from showing up for your email subscribers.
Q: I’ve added this to my URL but my optin is still loading, why?
A: If your optin is still loading when visiting a URL with the
?omhide=true query string you’ll want to check that you’ve set global cookies to control how often the optin appears to your visitor.
Refer to the chart below to see how the global cookie settings affect the use of the
?omhide=true query string:
|Success Cookie Duration||Interaction Cookie Duration||Result|
|0||0||optins hide for just that page-view|
|30||0||success cookie is set, optins don’t show for 30 days|
|0||15||interaction cookie is set, optins don’t show for 15 days|
|30||15||success cookie is set, interaction cookie is set, optins don’t show for 30 days|