AnsweredAssumed Answered

Is there a way to set "Referrer URL" and "Query Parameters" from payload?

Question asked by Gabriel Ortiz on Oct 28, 2019
Latest reply on Oct 28, 2019 by Sanford Whiteman

Hey yall, i'm in a real pickle. So I need to send a payload to Marketo and i need to set the "Referrer URL". The site domain is coming through ie. example.com, but I need the full URL path, ie example.com/stuff/stuff. There are campaigns triggered on this URL, and it's not getting captured when I POST to Marketo. What would also be helpful is if anyone knows a reference where I can see all the object keys that marketo uses. This is what I've tried so far and nothing has been successful:

 

Also, does anyone know the query parameters key?

 

MktoForms2.whenReady(function(form){
form.addHiddenFields({
LastFormURL : document.location.href,
LastFormReferrer : document.referrer,
Referrer__c : document.referrer,
referrerURL : document.referrer,
Lead_Source_Details : document.referrer,
lastReferrerURL : document.referrer
});
});

 

For reference, this is the activity log:

Outcomes