Skip to content
This repository was archived by the owner on Dec 11, 2019. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2.2.0 / 2017-08-17
==================

* Added better support for comapnies using elevio V4 and logging users into the embeddable via the new setUser method

2.1.0 / 2017-03-22
==================

Expand Down
3 changes: 3 additions & 0 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,7 @@ Elevio.prototype.identify = function(identify) {
if (plan) user.groups = [plan];
if (objectKeys(traits).length > 0) user.traits = traits;
window._elev.user = user;
if (typeof window._elev.setUser !== 'function') {
window._elev.setUser(user);
}
};
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@segment/analytics.js-integration-elevio",
"description": "The Elevio analytics.js integration.",
"version": "2.1.0",
"version": "2.2.0",
"keywords": [
"analytics.js",
"analytics.js-integration",
Expand Down