1. V3 Knowledge Base
  2. Advanced Technical Use Cases

Sending a user to a URL after they hit Submit

Place the code below within the custom POPUP JS section of the overlay. To find that section follow this article.

function ju_callback(t, email){
if (t==4 || t==10){
top.location.href = 'FullURLtosomepage';
}
}

 

For your reference, the t variable that gets passed to the call back will equal one of these depending on your engagement type:

function ju_callback(t,email,coupon){
/*
t = engagementType int
The different types are below

0 = Auto engagement for an unlocked offer
1 = Engagement - Facebook
2 = Engagement - Google Plus
3 = Engagement - Twitter Tweet
4 = Engagement - Email Signup
5 = Engagement - LinkedIn Share
6 = Engagement - Twitter Follow
7 = Engagement - Pinterest Follow
8 = Engagement - Instagram Follow
9 = Engagement - Videos Watched
10 = Engagement - Incentivized Form
11 = Engagement - VK Follow
12 = Engagement - Reddit Subscribe
13 = Engagement - Google Follow
14 = Engagement - LinkedIn Follow
16 = Engagement - Unlocked Click
15 = Engagement - Intro Continue Click
17 = Engagement - Unlocked View
18 = Engagement - Plugin

1000 = auto engagement for a previous engagement during a session
*/