Forked from 10foldsolutions/canny.io company identify
Last active
May 29, 2018 16:30
-
-
Save arasmussen/f800b0d8252e9c9ee202b38865499f2e to your computer and use it in GitHub Desktop.
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>!function(w,d,i,s){function l(){if(!d.getElementById(i)){var f=d.getElementsByTagName(s)[0],e=d.createElement(s);e.type="text/javascript",e.async=!0,e.src="https://canny.io/sdk.js",f.parentNode.insertBefore(e,f)}}if("function"!=typeof w.Canny){var c=function(){c.q.push(arguments)};c.q=[],w.Canny=c,"complete"===d.readyState?l():w.attachEvent?w.attachEvent("onload",l):w.addEventListener("load",l,!1)}}(window,document,"canny-jssdk","script");</script> | |
<script type="text/javascript"> | |
Canny('identify', { | |
appID: '5ada60c895e6667ef5f73ac6', | |
user: { | |
//avatarURL: viewer.avatarURL, // optional | |
//created: new Date(viewer.created).toISOString(), // optional | |
email: '<?php echo $_SESSION['email']; ?>', | |
id: <?php echo $accountID; ?>, | |
companies: [{ | |
id: '<?php echo $accountID.'-'.$accountChargiyID; ?>', | |
monthlySpend: '<?php echo $planCost; ?>', | |
name: '<?php echo str_replace("'", "\'", $accountCompany); ?>' | |
}], | |
name: '<?php echo str_replace("'", "\'", $accountFirstName).' '.str_replace("'", "\'", $accountLastName); ?>' | |
} | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment