Skip to content

Source: extension

Richard Cowin edited this page Dec 5, 2023 · 2 revisions

The extension source will use the key as the name of an extension.

Currently there is only one extension:

  • distribution - provide a random number between 0-99

This supports a metric to allocate a visitor a distribution value. This distribution value can be used as a mechanism to bucket users exclusively into one experiment or an other.

{
    "tag": "distribution",
    "source": "extension",
    "key": "distribution",
    "type": "number",
    "storage": {
        "type": "local",
        "key": "distribution",
        "resolveWith": "cached"
    }
}

See: Attribute: storage