1.6.0 • Published 8 years ago

see-js v1.6.0

Weekly downloads
3
License
ISC
Repository
github
Last release
8 years ago

see-js

Client side npm module for Stayzilla Experimentation Engine

Set up and integration

Install module using npm:

npm install see-js

Sample integration:

NOTE: Use webpack or browserify to compile for client side

var See = require('see-js');

var client = new See({
    base_url: 'https://see-server-url'
});

client.allocate()
    .then(function (experiments) {
        console.log('allocated:', experiments);
    
        // experiment-specific business logic goes here
    
        return client.track('pay_btn_click', { pay_mode: 'credit card' });
    })
    .then(function () {
        console.log('done');
    })
    .catch(function (err) {
        console.log('oops', err.stack);
    });
1.6.0

8 years ago

1.5.0

9 years ago

1.4.1

9 years ago

1.4.0

9 years ago

1.3.0

9 years ago

1.2.0

9 years ago

1.1.0

9 years ago

1.0.0

9 years ago