0.6.1 • Published 4 months ago

@evolv-delivery/analytics v0.6.1

Weekly downloads
-
License
ISC
Repository
github
Last release
4 months ago

analytics

Setup in the Evolv Manager

Adding an integration to the Evolv Manager

Setting up the config json

The config is read top to bottom. If a match is found, it stops. No fall-through, so in the example below if the path of the page starts with /home/, nothing will happen, because the statements block is an empty array.

"omni" is just a name, nothing is keying off of it. The optional "experiements" block must have an "operator" with an "include" or "exclude" value and an "ids" array. The "ids" array can be empty.

"statements" is an array of statements to be executed. "invoke" is the statement to execute and "with" is the list of parameters for the statement. You can use combination_id and experiment_id in your statements.

{
    "omni": [
        {
            "page": "^/home/",
            "statements": []
        },
        {
            "experiments": {
                "operator": "include",
                "ids": [
                    "28c039f6-3362-4be0-90c0-44962779903c"
                ]
            },
            "statements": [
                {
                    "invoke": "window.vztag.api.dispatch",
                    "with": [
                        "evolvCID",
                        {
                            "listPrefixed": "Evolv-Combo_${combination_id}:${experiment_id}"
                        }
                    ]
                }
            ]
        },
        {
            "experiments": {
                "operator": "exclude",
                "ids": [
                    "94ad809f-e846-4466-a87e-28805ed9fe64",
                    "f9d101ee-d191-491b-a51b-4435e0eb6863",
                    "7bd7f61e-0145-4e5c-85ba-271e864be7ed",
                    "1322e424-2a74-4bcf-a00d-ab6e562f82e8"
                ]
            },
            "statements": [
                {
                    "invoke": "window.vztag.api.dispatch",
                    "with": [
                        "evolvCID",
                        {
                            "list": "Combination_${combination_id}:${experiment_id}",
                            "listPrefixed": "Evolv-Combo_${combination_id}:${experiment_id}"
                        }
                    ]
                }
            ]
        }
    ]
}
0.6.1

4 months ago

0.6.0

4 months ago

0.5.3

10 months ago

0.5.2

10 months ago

0.5.1

11 months ago

0.5.0

1 year ago

0.3.1-rc2

2 years ago

0.3.1-rc

2 years ago

0.4.1

2 years ago

0.4.0

2 years ago

0.3.1

2 years ago

0.3.0

2 years ago

0.1.1

2 years ago

0.2.0

2 years ago

0.1.0

2 years ago