Sometimes, you may need to autocomplete the data of the users who participate in your campaign, because you have already identified them. For example, when you embed the campaign within your native mobile app.
Cool Tabs allows you to have certain fields that you already know automatically filled in the form. This way, instead of users having to type the data manually, these will be automatically filled in with default values when they open the form in their browser.
It is possible to auto-complete the fields:
- First name
- Last name
For these fields to be filled in, you have to add parameters at the end of the campaign URL. You can use the variables associated with the mentioned fields:
- first_name
- last_name
You can use these variables in the following campaign URLs.
1) Manual mode (modifying the campaign URL)
- URL of the campaign microsite. Example: https://www.your-promos.com/pub/ct_demo_coupon_code?email=test@example.com
- URL of the landing page. Example: https://www.your-promos.com/widget/promos/ct_demo_coupon_code?email=test@example.com
- URL of the campaign embedded in the landing page. Example: https://www.your-promos.com/embed/8b4188c199691fbd3adc5adb173a5996?email=test@example.com
- URL of the campaign embedded in the form. Example: https://www.your-promos.com/embed/8b4188c199691fbd3adc5adb173a5996?email=test@example.com&target=form
2) Advanced mode (modifying the script to embed the campaign in a website)
We show you an example, in which the form has been embedded. To show the landing, you only have to remove the "target=form&".
- As a data-email, data-first-name, data-last-name
<div class='ct_embeded'
data-src='https://www.your-promos.com/embed/8b4188c199691fbd3adc5adb173a5996?target=form&'
data-email="email@example.com"
data-first-name="first name sample"
data-utm-campaign="campaña"
data-crm-id="my crm_id"
data-lazy='1'></div>
<script src='https://cdn3.ct-assets.com/assets/ct-embed.js?xxxxdad5e4c23c455c54debeba21de52a76a064a920a3f61aff9481546e6a24584d5'></script>
- Modifying the URL of the data-src
<div class='ct_embeded'
data-src='https://www.your-promos.com/embed/8b4188c199691fbd3adc5adb173a5996?target=form&email=email@example.com&first_name=first name sample&utm_campaign=campaña'
data-lazy='1' data-scroll-to-offset-extra-y='-150'></div>
<script src='https://cdn3.ct-assets.com/assets/ct-embed.js?xxxxdad5e4c23c455c54debeba21de52a76a064a920a3f61aff9481546e6a24584d5'></script>
Other specifications
If you want other fields of your campaign form to be autocompleted, please contact us at help@cool-tabs.com.
Related content
Advanced personalization for your campaign with variables >>
Comments
0 comments
Please sign in to leave a comment.