Skip to content

Instantly share code, notes, and snippets.

@padicode
Last active December 20, 2015 10:30
Show Gist options
  • Save padicode/6115479 to your computer and use it in GitHub Desktop.
Save padicode/6115479 to your computer and use it in GitHub Desktop.
PadiAct Subscribe JavaScript Hook
<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