Populate Referrer URL to a custom field | Community
Skip to main content
New Participant
May 14, 2021
Question

Populate Referrer URL to a custom field

  • May 14, 2021
  • 1 reply
  • 1308 views

Hi everyone,

Is there a way to populate the Referrer URL to a custom field so we could report on that?

We are trying to figure out how people land on our forms. We have UTMs for the most part but the links could be shared without UTM populated or they could organic traffic.

 

Thanks!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

SanfordWhiteman
New Participant
May 14, 2021

Sure.

MktoForms2.whenReady(function(mktoForm){ mktoForm.addHiddenFields({ "LastReferrerURL" : document.referrer }); });

Create Last Referrer URL as a Textarea.