JS segmentation library for split tests
Source JavaScript code
Features
- Assigns a visitor to one of the specified segments
- The maximum number of segments is 26, like the letters in the Latin alphabet from A to Z
- A visitor's belonging to a segment can be specified and can last for a session or a specified number of days
...
Code Block | ||||
---|---|---|---|---|
| ||||
segmab({segments_number: 3, prefix: "myprefix", days: 0}, segment => { ga("set", "dimension1", segment); }); |
Source JavaScript code
...