Many Marketo users are aware that Marketo doesn’t support form prefill on external non-Marketo landing pages or non-mkto_toknized Marketo landing page links.
However, if the visitor has their munchkin tracking cookie associated with a known person record in Marketo, then there’s a possibility to implement form pre-fill with some custom development.
Sandy's Data Transfer Page/Data Transfer Object architecture-based form prefill method has gained popularity among users due to its elegance and the fact that it doesn't compromise security, consume API calls, or require external platform calls.
Despite this well-documented and superior solution, it's unfortunate to see a lot of users resorting to subpar and poorly-architected methods for form prefill. For example, making a call to the leads REST endpoint with the Munchkin cookie as a filter to retrieve person data and using it to prefill the corresponding form fields.
These approaches have several downsides, some of which include:
Making REST calls to Marketo for each form prefill can easily bottleneck the system, risking the exhaustion of API calls within your daily quota as you scale. Additionally, this also means that you’d have a lesser number of API calls, concurrency, and rate limits for your other integrations.
Exposing API credentials on the client side opens up a massive vulnerability in your architecture. I can’t imagine the havoc a rogue visitor could cause in your Marketo instance if they got hold of API keys.
REST API-based form prefill methods aren’t as reliable as the DTO/DTP method. There is a chance of encountering errors when using the REST API.
In addition to building error-handling systems into your code, using the REST API introduces a delay as you wait for the response, resulting in visitors waiting longer for the form to prefill.
Poorly architected prefill codes often neglect the proper handling of HTML encoding. Sandy's Pre-Fill JS + XML method addresses and corrects encoding differences effectively.
It is important to prioritize using a well-structured and secure approach for form prefill instead of relying on inferior alternatives.
Feel free to post your questions or thoughts in the comment section below! I’d get to them as soon as possible.
Happy Marketo’ing!
This is a great compilation of cons associated with the unreliable methods for prefilling. Thanks, Darshil!