Passing dynamic variables into hidden fields is a useful technique for popups created through Wisepops. With hidden fields, you can capture data that users don’t see, and later use it to segment, personalize, and tailor messaging to those users. In this how-to guide, we’ll show you how to pass dynamic variables into a form's hidden fields using Wisepops, step by step.
Open up the Wisepops editor and create/edit the popup you want to work with.
Click on your "Form" and navigate to the "Fields" tab from the left panel
Add a hidden field to your form by clicking on "Add a field" and selecting "Hidden" from the dropdown.
In the "Value" field of the hidden field settings, enter the dynamic variable you want to pass into the form. For example, if you want to pass your own user ID of the visitor, you could enter the following value:
{{userId}}
With contextual data, Wisepops can collect dynamic data without the need of a dynamic variable. Enable the toggle "Fill with contextual data" to see what's supported out of the box.
Dynamic variables are filled with custom properties values. You can refer to the Custom properties' documentation to learn how to define a
userId
property from your website (or from a GTM variable).
Don't hesitate to contact your support if you have any questions.