Hi all,
I want to create a field that will capture the url of the page on which the lead filled out its first form and became a lead.
I'm looking at the system fields available and I couldn't find anything that's really accurate for this.
Any suggestions? How would I use this with tokens perhaps?
Hi Tamar,
There are various techniques here, that depends on whether your forms are on Marketo landing pages or embedded on your web site pages.
On the most efficient way will be to add a few lines of Javascript code to your form using the forms 2.0 API and store the URL automatically in a hidden field (let's name that field FormPageURL):
MktoForms2.loadForm("//app-sjst.marketo.com", "785-UHP-775", 1057, function (form) {
form.addHiddenFields{ FormPageURL: document.location}
});
The complete Forms 2.0 API dos is here: Forms 2.0 » Marketo Developers
But otherwise, if you work on Marketo landing pages you could also use a smart campaign with a "fill out form" trigger that would populate a field.
-Greg
Greg, this method is good for recording (and overwriting) a field like LastFormReferrerURL but it won't keep the first value unless it is also blocked from updates.
Hi Sanford,
Yes, you are right, that was implicit to me, but better make it explicit
-Greg
I'm looking at the system fields available and I couldn't find anything that's really accurate for this.
Original Referrer.