Skip to content

Instantly share code, notes, and snippets.

@elliotboney
Created September 20, 2013 22:40
Show Gist options
  • Save elliotboney/6644890 to your computer and use it in GitHub Desktop.
Save elliotboney/6644890 to your computer and use it in GitHub Desktop.
redirect based on cookie
function C(k){return(document.cookie.match('(^|; )'+k+'=([^;]*)')||0)[2]}
if(C('affiliate') == 'txrealtors') { window.location.href="https://al152.infusionsoft.com/saleform/nathnie"; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment