Solved! Go to Solution.
Sanford Whiteman I know it's been a few years since you posted this, but it was EXACTLY what I was looking for. Dropped the code right in and everything worked flawlessly. Thank you, Sir!!!
Great to hear!
Hi Sanford,
Sorry to reply to such an old post, but I was wondering, would this still work on a webpage that doesn't have any Marketo Munchkin tracking? We need to embed one of our forms on a partner website.
Thanks!
Hi Sanford,
So only this code is needed to trace the last form URL? And, the webmaster will know what to put in the asterisks?
MktoForms2.loadForm("//app-**01.marketo.com", "***-***-***", 148,
function(form)
{
form.addHiddenFields({ LastFormURL : document.location.href })
});
Then, I also need to create a smart campaign with Smart List Fills Out Form, and Flow, Change Data Value, MyField, New Attribute is {{trigger.Web Page}}? For the MyField I created a custom "Web Page Source" field, which I can add to my alert email.