I am trying to capture source web page through lead.original referrer token in my flow.
But I am only getting half of the URL displayed.
My actual form code is
now where do I add the referer code ?
If I add the below code
I m not able to see the form in my website.
I am trying to capture source web page through lead.original referrer token in my flow.
You’re confusing the system field Original Referrer with the custom field used here, lastFormReferrerURL. You can’t change the Original Referrer field with a form post (nor should you care about that field).
You can add the custom JS directly to a script directly after the standard embed.
<script src="//pages.sensen.ai/js/forms2/js/forms2.min.js"></script>
<form id="mktoForm_1045"></form>
<script>
MktoForms2.loadForm("//pages.sensen.ai", "147-RDY-169", 1045);
</script>
<script>
MktoForms2.whenReady(function(mktoForm){
mktoForm.addHiddenFields({
lastFormReferrerURL : document.referrer
});
});
</script>
Hi Sanford,
I have tried using your script, it still not working.
My entire goal here is to capture the full URL of the website in Salesforce CRM where the Marketo form is filled.
In my smart list: I kept a trigger called fills out form and chose the designated form
In my flow: I kept added few steps that involve syncing person to SFDC and assigning to sales owner, create task and add to campaign.
In task comment I have added to capture lead.original refferer.
Until last week this flow worked, once we deployed the form in different pages, it stopped working.
I am only able to capture half URL (Example: sensen.ai is the website, if the form filled in sensen.ai/solution/retail, I am only capturing sensen.ai/)
Please help me.
I am only able to capture half URL (Example: sensen.ai is the website, if the form filled in sensen.ai/solution/retail, I am only capturing sensen.ai/)
That’s not “half“ of the referrer URL. It’s the protocol + hostname, i.e. the origin.
Which is exactly you’d expect to see because https://sensen.ai sends this CSP referrer-policy:
referrer-policy: origin
Also please remember to use the syntax highlighter when posting code so it’s readable.
Hi Sanford,
Sorry about not using syntax
But, can you please advise on how I can capture the entire web page URL
I have copied the script given by you, it is still not working