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.3.0 / 2017-08-23
==================

* Remove assumesPageView option

2.2.1 / 2017-08-23
==================

Expand Down
1 change: 0 additions & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ var objectKeys = require('@ndhoule/keys');
*/

var Elevio = module.exports = integration('Elevio')
.assumesPageview()
.option('accountId', '')
.global('_elev')
.tag('<script src="//static.elev.io/js/v3.js">');
Expand Down
4 changes: 2 additions & 2 deletions 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.2.1",
"version": "2.3.0",
"keywords": [
"analytics.js",
"analytics.js-integration",
Expand All @@ -25,7 +25,7 @@
"dependencies": {
"@ndhoule/each": "^2.0.1",
"@ndhoule/keys": "^2.0.0",
"@segment/analytics.js-integration": "^2.1.0",
"@segment/analytics.js-integration": "^3.2.0",
"next-tick": "^1.0.0",
"obj-case": "^0.2.0"
},
Expand Down
3 changes: 0 additions & 3 deletions test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ describe('Elevio', function() {

it('should have the right settings', function() {
analytics.compare(Elevio, integration('Elevio')
.assumesPageview()
.global('_elev')
.option('accountId', ''));
});
Expand All @@ -43,12 +42,10 @@ describe('Elevio', function() {
describe('#initialize', function() {
it('should create window._elev', function() {
analytics.initialize();
analytics.page();
analytics.assert(window._elev instanceof Object);
});
it('should call #load', function() {
analytics.initialize();
analytics.page();
analytics.called(elevio.load);
});
});
Expand Down