Created
March 22, 2013 21:43
-
-
Save sud0n1m/5225010 to your computer and use it in GitHub Desktop.
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
<?php if $_SESSION[user] ?> | |
<script type="text/javascript"> | |
_cio.identify({ | |
// Signed in user attributes | |
id: <?= $_SESSION[user][id] ?>, // Unique id for the currently signed in user in your application. | |
email:<?= $_SESSION[user][email] ?>, // Email of the currently signed in user. | |
created_at:<?= $_SESSION[user][created_at] ?>, | |
userinfo_name: <?= $_SESSION[user][name] ?>, // first name + last name | |
// ETC.... | |
}); | |
</script> | |
<?php end ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment