For page personalization to work –
- The domain should be authenticated
- It must use HTTPS
- Contact should have Prefilling enabled i.e. Prefill Marketing Form field in the Contact record should have the value Allow.
- Specify the contact fields to be made available.
Below is the marketing form (landing page) that we’d be using.
The form has a Remember Me element in it required for Personalized Pages. It gets automatically added to the form if we enable PreFill for the form.
We have only kept Pre Fill enabled for the City field. The other fields in the form have prefilled disabled.
Create a new personalized page, navigate to Outbound marketing >> Marketing Content >> Personalized Pages and add
Personalized page fields to it
After adding the fields, Click on Go live.
code, that we’d paste into our page, in the <head> section of the HTML.
As we have added 3 Personalized page fields, we will have access to the value of only these 3 fields on the page where this script is used, even though our Marketing form can have multiple fields or even if the cookie has other values stored as part of another marketing form.
Lastly, we have a Div element to show the personalized message to the user.
Below is our page
Let us populate the values and submit the details (with Remember me enabled)
Let us refresh the page after a few seconds. This is because in the background we will have the lead/contact record either created or updated based on what we have specified in the Marketing form.
Also as we had Pre-fill enabled for only the City field, we can see the value automatically populated for it.
Hope it helps..