Created
March 15, 2022 22:54
-
-
Save acoyfellow/13909e350f383b4382f80c4f9d88def6 to your computer and use it in GitHub Desktop.
Phonesites.com redirect based on "referrerId" URL parameter
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
function beforePost(){ | |
var referrerId= params.filter(function(p){ | |
return p.key==='referrerId' | |
})[0]||{}; | |
// add a new line for each referrer. | |
if(referrerId.val==='google'){ redirect = "https://google.com" }; | |
}; | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment