Skip to content

Instantly share code, notes, and snippets.

@sud0n1m
Created March 22, 2013 21:43
Show Gist options
  • Save sud0n1m/5225010 to your computer and use it in GitHub Desktop.
Save sud0n1m/5225010 to your computer and use it in GitHub Desktop.
<?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