ab test in browser.
import ABTest from '@saber2pr/ab-test'
const test = new ABTest()
// by custom id, like session-id、jwt-token
test.getAB('your id') // 'A' | 'B'
// by fingerprint
test.getVisitorAB() // Promise<'A' | 'B'>
- google/google-analytics
- fingerprintjs/fingerprintjs
- tcollinsworth/ab-test-selector