Last active
December 20, 2015 10:30
-
-
Save padicode/6115479 to your computer and use it in GitHub Desktop.
PadiAct Subscribe JavaScript Hook
This file contains 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 type="text/javascript"> | |
window.nrlskOnEvent = function(padiact) | |
{ | |
if (padiact.type=='subscribe') | |
{ | |
// here should go the code that you want PadiAct to trigger when somebody subscribes | |
// the email address of the subscriber is available and url encoded: e.g. user%40gmail.com | |
// example: | |
console.log (padiact.email+' subscribed through PadiAct'); | |
// available vars: | |
// padiact.email (url encoded email of person that subscribed) | |
// padiact.id (padiact campaign ID) | |
// padiact.name (padiact campaign name) | |
} | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment