Skip to content

Instantly share code, notes, and snippets.

@GaryUnbounce
Last active August 29, 2015 13:56
Show Gist options
  • Save GaryUnbounce/9082125 to your computer and use it in GitHub Desktop.
Save GaryUnbounce/9082125 to your computer and use it in GitHub Desktop.
Capture referrer data
<script type="text/javascript">
jQuery(function(){
jQuery('input#referrer').val(decodeURI(document.referrer));
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment