AnsweredAssumed Answered

Original External Referrer URL Javascript

Question asked by b4d5db7905bb7e4b6d43ed64b6a9b4f4749d357e on Nov 28, 2016
Latest reply on Nov 28, 2016 by b4d5db7905bb7e4b6d43ed64b6a9b4f4749d357e

I'm trying to add Javascript that pulls Original External Referrer Url into a hidden form field. This is the Javascript that I will be using (from this discussion):

  1. <script> 
  2. MktoForms2.whenReady(function(form){ 
  3.   form.setValues({ 
  4.     OriginalExternalReferrer : document.referrer 
  5.   }); 
  6. }); 
  7. </script> 

 

Do I need to place this script on the landing page or in the form somewhere? If on the form, where do I place this?

Outcomes