Hi there,
I want to capture the referral URL in the database when user clicks on SUBMIT button, is that possible if yes how? Btw, I’m using this code but its not working for me.
$w.onReady(function () {
// Get the referrer URL
var referrerURL = document.referrer;
// Set the referrer URL in the hidden field on the form
$w("#refferalLink").value = referrerURL;
});