Advanced

Introduction to JS Callbacks

Lean how you can leverage Javascript callbacks

Lisa Fockens
Updated 1 month ago by Lisa Fockens

Stop Displaying a Campaign When the Cross Close Icon Is Clicked

New! We now have a built-in targeting option to stop displaying a campaign when it has been closed. Simply check this option:. The method described in this article can still be useful if you want to…

Lisa Fockens
Updated 1 month ago by Lisa Fockens

Dynamically Add a Custom Parameter to a Redirect URL

We can add custom parameters on the fly to a redirect URL through the Wisepops' JS callbacks feature. Let's say we want to redirect our visitors that click on a CTA to https://example.com/ with a dyn…

Lisa Fockens
Updated 1 month ago by Lisa Fockens

Fire the Facebook Pixel When a form is Submitted

You can easily track leads collected by Wisepops in your Facebook Advertising analytics. We do this, we will use the Wisepops JS callbacks feature. Prerequisite. The Facebook pixel must already be in…

Lisa Fockens
Updated 1 month ago by Lisa Fockens

Forbid Disposable Emails in Your Signup Form

It is possible to prevent visitors from subscribing with a disposable email (a fake email that will be used only once). We will use the Wisepops JS callbacks feature to download a list of disposable…

Lisa Fockens
Updated 1 month ago by Lisa Fockens

Display a Popup Only After Another One Has Been Seen (or Clicked)

In some situations, it might be useful to condition the appearance of a popup on the status of another popup. Consider the following use case: Display a bottom bar that states that our shop will be c…

Lisa Fockens
Updated 1 month ago by Lisa Fockens

Forbid Free Emails in Your Signup Form

It is possible to prevent visitors from subscribing with a free email (with domains such as gmail.com, hotmail.com, facebook.com, etc). To do so, we'll use the Wisepops JS callbacks feature to downlo…

Lisa Fockens
Updated 1 month ago by Lisa Fockens

Create a Spin-the-Wheel Popup Without Collecting the User’s Email Address

To offer a spin-the-wheel popup that doesn't require an email, we're going to use a signup block that we're going to edit to do the following: Hide the email field. Use the Wisepops' JS callbacks fea…

Lisa Fockens
Updated 1 month ago by Lisa Fockens

Add a coupon to the clipboard after signup

Using Shopify? You can apply the discount code directly to the visitor's cart.. It is possible to add a coupon to the visitor's clipboard using our JS callbacks feature. In this article, we will show…

Lisa Fockens
Updated 1 month ago by Lisa Fockens

Create a Micro-Commitment Popup

Warning: This guide is more a hack than a real technique to create a micro-commitment popup. If you'd like this option to work out of the box, feel free to contact us through the chat. The more upvot…

Lisa Fockens
Updated 1 month ago by Lisa Fockens

Personalize the Content of Your Popup on the Fly

It is possible to make parts of your popups dynamic by replacing variables with the Wisepops' custom properties. Let's see how this works. Place the Dynamic Variables. You can place dynamic variables…

Lisa Fockens
Updated 1 month ago by Lisa Fockens

Apply filters to your dynamic variables

You can personalize the content of your popups on the fly with dynamic variables. By using filters, you can apply transformations to the variables. Syntax of filters. To apply a filter to a variable:…

Lisa Fockens
Updated 1 month ago by Lisa Fockens

Inject the Name of the Visitor's Company into Your Popups (with Clearbit)

In this article, we are going to use Clearbit to detect the visitor's company inject it into a popup content. Step 1: . Create a Clearbit account. You will need the Enterprise plan to use their Revea…

Lisa Fockens
Updated 1 month ago by Lisa Fockens

Display the visitor's city within your popup

We expose your visitors' geolocation within our JS callbacks. You can access the location of your visitors through the object event.detail.location. This object contains the following properties: con…

Lisa Fockens
Updated 1 month ago by Lisa Fockens

After-popup-close Event

The after-popup-close event is fired after the popup has been closed. This is one of the various events Wisepops can trigger as part of our JS callbacks feature. This event occurs once the hiding ani…

Lisa Fockens
Updated 1 month ago by Lisa Fockens

Add Custom Validation to Your Signup Forms

It is possible to add your own custom validation rules into Wisepops signup forms through our JS Callbacks feature. Let's say you want to only accept emails with the domain example.com , and reject o…

Lisa Fockens
Updated 1 month ago by Lisa Fockens

After-tracked-click Event

The after-tracked-click event is fired after the conversion of a popup. This is one of the various events Wisepops can trigger as part of our JS callbacks feature. A click on the following elements c…

Lisa Fockens
Updated 1 month ago by Lisa Fockens

Flag a Popup as Clicked With JS Code

With our HTML blocks you can embed custom forms and buttons in your popups. When visitors interact with these popups, you want Wisepops to consider the popup as converted. So the conditions such as "…

Lisa Fockens
Updated 1 month ago by Lisa Fockens

After-form-submit Event

The after-form-submit event is fired after the submission of a signup block form. This is one of the various events Wisepops can trigger as part of our JS callbacks feature. Prevent action after subm…

Lisa Fockens
Updated 1 month ago by Lisa Fockens

Before-form-submit Event

The before-form-submit event is fired before the submission of a signup block form. This is one of the various events Wisepops can trigger as part of our JS callbacks feature. This event occurs befor…

Lisa Fockens
Updated 1 month ago by Lisa Fockens

Display a form field conditionally

You can make a form field appear only if another field matches a condition. For example, you can your visitors how they heard about you. In a dropdown, the visitor can choose the 5 most frequent chan…

Boris Hocdé
Updated 1 month ago by Boris Hocdé

Close a Popup With JS Code

It is possible to close a popup from your code, without user interaction, through Wisepops' JS Callbacks feature. Let's say we want our popup to be closed five minutes after being displayed, if not c…

Lisa Fockens
Updated 1 month ago by Lisa Fockens

Before-popup-display Event

The before-popup-display event is fired before the display of a popup. This is one of the various events Wisepops can trigger as part of our JS callbacks feature. Prevent popup display. The display o…

Lisa Fockens
Updated 1 month ago by Lisa Fockens

Send the data collected by a form to the redirected URL

With our JS callbacks , we can set the collected form's data as GET or POST parameters to a redirected URL. Create a form. First, let's have a form ready. For this example, we'll collect the email an…

Boris Hocdé
Updated 1 month ago by Boris Hocdé

Before-tab-display Event

The before-tab-display event is fired before the display of a tab. This is one of the various events Wisepops can trigger as part of our JS callbacks feature. Prevent tab display. The display of the…

Lisa Fockens
Updated 1 month ago by Lisa Fockens

Before-tracked-click Event

The before-tracked-click event is fired before the conversion of a popup. This is one of the various events Wisepops can trigger as part of our JS callbacks feature. A click on the following elements…

Lisa Fockens
Updated 1 month ago by Lisa Fockens

Contact