URL params? Embed code? Window functions? Etc…
Add the fields into the URL as params
https://mywebsite.com/onboarding?email=ada@lovelace.com
.Set those fields to be URL-controlled
Add each field as an attribute on the <savvy> HTML element
<savvy id="flow_abc" email="ada@lovelace.com"></savvy>
.Set those fields to be Embed Code-controlled
Place the data on a Window variable in your website/webapp
Add a custom code Action, triggered on first load
Grab the data from the Window variable, and then set the User Data
helperFunctions.setUserData()
to set the
User Data based on the payload sent with that event:Add a custom code Action, triggered on first load
Listen for a custom Window event, and then set the User Data
window.addEventListener()
to listen for a
custom event that you will define.helperFunctions.setUserData()
to set the
User Data based on the payload sent with that event:Send the custom Window event from your website/webapp