Query String and Form Redirects
Jan 8, 2020 6:28 PM
Our client has recently migrated their CRM of choice from Pardot to Hubspot. We currently have external assets (websites) built out that are wired up via Pardot forms. We are looking to switch the pardot forms over to Hubspot forms. There are a few functionity items that we'd like to know more on how to implement via Hubspot as they were working Pardot.
1) All previous assets had personalization built on the asset content (ex. Content would populate Hello 'First Name'! using Pardot form info) via Pardot Variable Tags within our URL (example ?firstName=%%first_name%%).
So far the HubL Variables we've tested have not worked on our content. Are there HubL variables or other variable that work on external web pages that are not created within Hubspot pages?
2) We had the Pardot form setup on a modal iframe that would redirect the user to the url set within the form completion actions. Meaning the iframe would dissapear once the Pardot form had submitted and the parent page would load with the redirect url. In Hubspot the redirect is happening within the iframe and not the parent page. Pardot had an option that controlled this (checkmark box stating - 'Redirect to the following URL instead of showing the form's Thank You Content'). This would not load thank you message in iframe and in turn would just redirect the site load to the redirect url target.
Any guidance on these items would be appreciated.
What I want to achieve is for anyone that visits this landing page using the URL: domain.com/123?firstname=John&lastname=Smith the first line displays "Hello John Smith," rather than just "Hello"
I suppose it can be done using Java Script. Can anyone help with some ideas?