Cookies Introduction and Setup

Introduction

Cookies are used to track certain actions and disable Triggers once those actions have occurred. This prevents your popups from spamming and annoying your users.

Use multiple Cookies for one popup, or one Cookie for all popups. It’s recommended to have a good balance of Cookies that makes sense for your situation. In some situations, you should even use multiple methods so that your popups behave appropriately.

Setting Up Your Cookies

Method #1: Setup a Cookie During Trigger Creation

Check out this video for a guide on this particular Cookie setup process, or skip the vid and read the guide below:

After you’ve created a popup, scroll down in the  Popup Editor and click Add New Trigger. 

For this example, we're going to choose Exit Intent. Once you've selected your Trigger and clicked Add, you will see the General and Cookie tab menu items.

Click on the Cookie tab, then click In the Cookie Name Field and click Add New Cookie. Last, click the Add button on the bottom right.

Once you click Add, the Cookie Creation Events screen will appear. After choosing your event to create the Cookie, you will be able to customize every aspect of how your Cookie will behave. For detailed explanations on all of the Cookie Settings and features, check out the  Cookie Settings and Features Doc.

Method #2: Setup a Cookie After Trigger Creation

If you’ve already created your popup and Trigger, but need to assign or create a Cookie to it, then look for the Cookies Pane in the Popup Editor, and click Add New Cookie.

Once you click Add, the Cookie Creation Events screen will appear. After choosing your event to create the Cookie, you will be able to customize every aspect of how your Cookie will behave. For detailed explanations on all of the Cookie Settings and features, check out the  Cookie Settings and Features Doc.

Method #3: Create a Cookie When the User Clicks a Specified Element Within Your Popup

Check out this guide  here.

Method #4: Creating Cookies When Forms Are Submitted

It's very important to setup Cookies so that when a form is submitted, the user doesn't continue to see your popup. Could you imagine opting-in to a newsletter, then being spammed again with the same exact opt-in form a minute later? Pretty annoying.

Popup Maker offers numerous Cookie Creation Events, but creating Cookies when forms are submitted are more tricky because each form building plugin for WordPress functions differently. This means we have to have solutions in place depending on what form builder you are using. Plus, we also have to worry about closing the popup when the form is submitted, as this also does not happen automatically in all cases.

Below, you can find our different docs on creating Cookies and closing popups on form submit for various form builder plugins. If your form builder plugin isn't listed, use the generic version at the top of the list.

Pro Tip: If you have yet to make a firm decision on what form builder you're using for your website, we recommend Ninja FormsPopup Maker has special integrations with Ninja Forms so that this whole process requires zero code and only a few clicks, whereas other form builders will require you to setup custom code as explained in each doc.

Final Step: Attach the Cookie to Your Trigger

Once you've created,  configured, and added your Cookie to the popup, make sure it controls the Trigger properly by attaching the Cookie to the Trigger as shown in the screenshot below. Notice how the single Cookie below appears under the Triggers Pane and the Cookies Pane - this means that the Cookie now has control over the Trigger.

Still need help? Contact Us Contact Us