1.31.19 • Published 7 days ago

@evolv/asset-manager v1.31.19

Weekly downloads
224
License
Apache-2.0
Repository
-
Last release
7 days ago

Evolv Asset Manager

Tool used for managing Evolv created variants.

Setup

Web

Drop the following snippet in the head of your webpage(s). Preferrably as high as possible.

Note: You can find your "environment_id" in the Evolv manager or by contacting support.

<head>
    <!-- evolv asset manager -->
    <script
        src="https://media.evolv.ai/asset-manager/releases/latest/webloader.min.js"
        data-evolv-environment="<environment_id>"
    ></script>
</head>

If you would like to only render css assets place data-evolv-js="false" into the script tag. If you would like to only render js assets place data-evolv-css="false" in the script tag.

This snippet handles the bulk of the work needed to run an experiment. It confirms or contaminates users and activates dormant variants when the current context matches the parameters of the experiment. The context is evaluated on things like page, demographics and more.

Once the snippet has loaded, firing an event can be done through the globally accessible client with:

evolv.client.emit('my-event');

The global object evolv has other methods and properties that are now accessible within the context of your webpage. For a manually activated experiment you can access evolv.context and change the current context to match the requirements of your experiment. For more info on the accessible client methods and their uses see: javascript-sdk

There are 3 patterns of use that we foresee.

  1. First is the one described above (simplest implementation). Place the asset manager web loader snippet onto the page, and it will append the css or js assets to the page's <head> for you and will create a unique user and store the uid in local storage.

  2. The second is a small alteration of the first. Follow the same steps but pass in a uid using the data-evolv-uid parameter on the script tag. With this approach no ids or information is stored on the client.

<head>
    <script
        src="https://media.evolv.ai/asset-manager/releases/latest/webloader.min.js"
        data-evolv-environment="<environment_id>"
        data-evolv-uid="<uid>"
    ></script>
</head>
  1. Third is a server side rendering approach. The two options above automatically append the needed css and / or js assets on the page for you. In this approach the implementer would render these assets serverside. Placing them on the page along with the asset manager webloader. This approach reduces the round trip calls needed for variant rendering and leads to a faster implementation.
<head>
    <link rel="stylesheet" type="text/css" href="https://participants.evolv.ai/v1/<environment_id>/<uid>/assets.css">
    <script type="text/javascript" src="https://participants.evolv.ai/v1/<environment_id>/<uid>/assets.js"></script>
    <script
        src="https://media.evolv.ai/asset-manager/releases/latest/webloader.min.js"
        data-evolv-environment="<environment_id>"
        data-evolv-uid="<uid>"
        data-evolv-css="false"
        data-evolv-js="false"
    ></script>
</head>

For more about Evolv and what we do, go here.

1.31.19

2 months ago

1.30.27

2 months ago

1.30.26

3 months ago

1.30.25

3 months ago

1.29.17

3 months ago

1.30.23

3 months ago

1.29.16

4 months ago

1.29.15

4 months ago

1.29.5

9 months ago

1.29.8

8 months ago

1.29.9

8 months ago

1.29.6

8 months ago

1.28.15

10 months ago

1.29.14

6 months ago

1.29.12

7 months ago

1.27.23

11 months ago

1.27.22

11 months ago

1.27.20

11 months ago

1.26.11

1 year ago

1.27.19

12 months ago

1.27.18

12 months ago

1.25.15

1 year ago

1.25.14

1 year ago

1.25.6

1 year ago

1.24.11

1 year ago

1.22.17

2 years ago

1.22.18

2 years ago

1.23.17

2 years ago

1.19.1

2 years ago

1.20.1

2 years ago

1.19.0

2 years ago

1.18.4

2 years ago

1.17.12

2 years ago

1.15.6

3 years ago

1.14.10

3 years ago

1.13.2

3 years ago

1.13.1

3 years ago

1.12.7

3 years ago

1.12.6

3 years ago

1.11.11

3 years ago

1.10.20

3 years ago

1.10.15

3 years ago

1.10.18

3 years ago

1.9.24

3 years ago

1.9.23

3 years ago

1.8.27

3 years ago

1.8.30

3 years ago

1.8.26

3 years ago

1.8.25

3 years ago

1.8.24

3 years ago

1.8.17

3 years ago

1.8.15

3 years ago

1.8.13

3 years ago

1.8.11

3 years ago

1.7.22

3 years ago

1.7.21

3 years ago

1.7.19

3 years ago

1.6.16

3 years ago

1.6.12

3 years ago

1.6.11

3 years ago

1.6.9

3 years ago

1.5.7

4 years ago

1.5.6

4 years ago

1.5.5

4 years ago

1.4.16

4 years ago

1.3.17

4 years ago

1.3.16

4 years ago

1.3.14

4 years ago

1.3.13

4 years ago

1.3.10

4 years ago

1.3.9

4 years ago

1.3.8

4 years ago

1.3.6

4 years ago

1.1.36

4 years ago

1.1.30

4 years ago

1.0.17

4 years ago

1.0.10

4 years ago

1.0.4-f4843d3

4 years ago

1.0.0-b105494

4 years ago

1.0.3-409b7e8

4 years ago

1.0.1-2ed3795

4 years ago

1.2.0-9f28add

4 years ago

1.0.0-62fcd8fde

4 years ago

0.0.4-2c479c8c4

4 years ago

0.0.5-d3d92e458

4 years ago

0.0.5-1320edc33

4 years ago

0.0.4-8105acacf

4 years ago

0.0.2-0e8554231

4 years ago

0.0.0-8863f1c1e

4 years ago

0.0.1-3c8055509

4 years ago