Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/firstandthird/ab-test
Simple A/B testing using Domodule and Micro Metrics
https://github.com/firstandthird/ab-test
front-end
Last synced: 3 days ago
JSON representation
Simple A/B testing using Domodule and Micro Metrics
- Host: GitHub
- URL: https://github.com/firstandthird/ab-test
- Owner: firstandthird
- License: mit
- Created: 2017-10-26T21:19:34.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-04-12T14:44:13.000Z (almost 6 years ago)
- Last Synced: 2024-04-24T23:40:31.948Z (9 months ago)
- Topics: front-end
- Language: JavaScript
- Size: 216 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# AB Test ![npm](https://img.shields.io/npm/v/@firstandthird/ab-test.svg)
Simple A/B Testing library using [Domodule](https://github.com/firstandthird/domodule) and [Micro Metrics](https://github.com/firstandthird/micro-metrics-browser)
## Installation
```sh
npm install @firstandthird/ab-test
```## Usage
### JavaScript
```js
import '@firstandthird/ab-test'
```### HTML
```html
```
It needs to receive some options or they should be defined on the window object:
* `url`: `data-module-url` as an option or have `metricsEndpoint` defined on the `window` object.
* `session`: `data-module-session-id` as an option or have `metricsSession` defined on the `window` object.