Options
All
  • Public
  • Public/Protected
  • All
Menu

Evolv Execution Plan API

The Evolv JavaScript Client API

Evolv provides a JavaScript-based system that allows you to implement, manage, and test experiments on your websites and web applications.

The following pages provide the documentation, along with examples of how to use it effectively. This includes the following:

  • Adding Evolv to your website
  • Manually applying experiments
  • Debugging and troubleshooting
  • Adding custom event handlers

Documentation

Adding Evolv to Your Website

Before you begin, you'll need to include the latest version of Evolv on your website. Start by adding the following snippet to the <head> tag on each page of your website, making sure to replace [environmentId] with your environment ID found in your account in the web portal.

This snippet should be loaded as early as possible, but after any other analytics packages you may be using. You can also add this snippet using your website's tag management system.

<script src="https://media.evolv.ai/releases/latest/scout.min.js"
        data-evolv-environment="[environmentId]">
</script>

Next, read the Evolv Module documentation to start using Evolv.

Setting the evolvPreload Object

Before evolv has loaded, you can configure userAttribute information for audience filter and listeners for lifecycle events

 window.evolvPreload = {
    userAttributes: {
      example: 'value'
    },
    listeners: {
      rendered: function(event) {
        console.log('rendered', event);
      }
    }
 };

Getting Additional Help

If you have any questions, visit our Knowledge Base or contact us for additional support.

Generated using TypeDoc