4.3.1 • Published 1 year ago

skift v4.3.1

Weekly downloads
252
License
MIT
Repository
github
Last release
1 year ago

Skift npm version Build Status semantic-release

A/B Testing tool for the modern Web

Usage

Basic usage

import skift from 'skift';

// Configure Skift.
skift.config({
    tracking: {
        track: function(event, trackingData) {
            console.log('A/B test event: ' + event, trackingData);
        }
    }
});

// Describe the A/B Test.
skift
    .create('My awesome test')
    .setCondition(() => {
        return window.location.pathname === 'contacts'
    })
    .addVariation({
        name: 'A form with the new design',
        setup() {
            document.getElementById('form').addClass('visible')
        }
    })
    .addVariation({
        name: 'Control'
    })
    .setup(); // Don't forget to setup the test!

New to A/B testing?

We recommend using Amplitude for goal tracking.

Contributing

Interested in contributing? Please have a look at our developer documentation for more information on how to get started.

4.3.1

1 year ago

4.3.0

4 years ago

4.2.9

5 years ago

4.2.6

5 years ago

4.2.5

5 years ago

4.2.4

6 years ago

4.2.3

6 years ago

4.2.2

6 years ago

4.2.1

6 years ago

4.2.0

6 years ago

4.1.0

6 years ago

4.0.0

6 years ago

3.4.0

6 years ago

3.3.0

6 years ago

3.2.6

6 years ago

3.2.5

6 years ago

3.2.4

6 years ago

3.2.3

6 years ago

3.1.0

6 years ago

3.0.0

6 years ago

2.0.0

6 years ago

1.4.2

7 years ago

1.4.1

7 years ago

1.4.0

7 years ago

1.3.3

7 years ago

1.3.2

7 years ago

1.3.1

7 years ago

1.3.0

7 years ago

1.2.0

7 years ago

1.1.0

7 years ago

1.0.0

7 years ago