Using Visitor Data from OptiMonk Form in a Redirect Link

A great way to personalize the visitor's experience on your website is to make it personal. You can use the information on your website that the visitors provide when they fill out an OptiMonk popup. For example, if you ask their name and email address, you can use their name when they continue to browse your website:

mceclip0.png

You can set this up in the Campaign Editor:

1. Log in to your OptiMonk account at https://app.optimonk.com/ 

2. Select Campaigns on the left then select the Campaign you want to use:

mceclip0.png

3. Select the Variant you want to use:

mceclip1.png

This will take you to the Campaign Editor:

mceclip2.png

4. The visitor's data can be used on the redirect link of the popup. You need to have a Button Element on your Campaign set up to Redirect On-click:

mceclip1.png

You will need to add placeholders to the redirect link:

First name: [[FNAME]]
Last name: [[LNAME]]
Email address: [[EMAIL]]

The link would look like this with the placeholders:

http://optimonk.com/?firstname=[[FNAME]]&lastname=[[LNAME]]&email=[[EMAIL]]

5. Once you are finished, click on Save & Exit in the top right corner to save your changes:

mceclip3.png

You will also need to implement the above placeholders on your website. You can find example code which you can also test here: https://jsfiddle.net/7wu3gjqm/4/

That's it! :) If you need any further help or have any questions, just let us know at support@optimonk.com and we would be happy to assist you :) 

Have more questions? Submit a request

Comments