Skip to content

Instantly share code, notes, and snippets.

@duellsy
Created June 2, 2015 22:52
Show Gist options
  • Save duellsy/c2213d2075005d2fc5b6 to your computer and use it in GitHub Desktop.
Save duellsy/c2213d2075005d2fc5b6 to your computer and use it in GitHub Desktop.
Docs for elevio on segment

Getting Started

Once you have Segment installed on your site, toggle elevio from your Segment integrations page, and add your account ID which you can find on your elevio widget settings page.

elevio supports the identify method to provide extra user information.


Identify

When you call identify, we make use of the following information if it is provided.

  • traits.email
  • traits.name
  • traits.plan

Passing through the above optional information will allow you to use the elevio access control feature to display content to this user based on their email domain or plan (which we call a group).

Here is an example of passing all the above information:

analytics.identify('<?php echo $current_user.id ?>', {
  email: '<?php echo $current_user.email ?>',
  name: '<?php echo $current_user.name ?>',
  plan: '<?php echo $current_user.plan ?>'
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment