Project, Experiment, Variation Javascript

Overview

Convert enables you to include Javascript snippets as part of your Project, Experiment or even Variation.

Global Project JS

Convert allows you to include a JS Snippet on your Project. This means that all the pages that have the Convert tracking code installed will have the Snippet included. 

The snippet would be included as any other library that you include in your web page. 

The code does not trigger automatically. You will need an event to trigger it. A common event is:


convert.$( document ).ready(function() {
// Your code here
});

You can edit the snippet by going to your Project Settings. Click on the Settings menu item. And scroll down to the bottom.

 

Global Experience JS

Convert Experiences allows you to insert a Javascript snippet into a page when an experience is triggered. The snippet would be included as any other library that you include in your web page. This only applies to A/B Experiences and Personalizations.

To add a JS to your experience. 

  1. Open the Visual Editor, by clicking on Edit Variations on the Experience Summary
  2. Click on the settings button (gear icon).
  3. Select Global Experience JS.
  4. Enter the JS Snippet.
  5. Save your Experience.


The JS snippet will not run automatically. You would need an event to run a snippet as you would do in any included JS library. 

Variation JS

Convert Experiences enables you to add a Javascript snippet in the variation of your choosing. This can only be done in A/B and Personalization Experiences.

With this feature, you can test if certain functionality added by the snippet improves your conversion.

For example, you could A/B test customer support chat, by adding the chat snippet to the variation.

To add it:

  1. Open the Visual Editor, by clicking on Edit Variations on the Experience Summary
  2. Hover over the Variation name and a pencil will appear.
  3. Hover over the pencil and the Variation menu appears.
  4. Select the Custom JS
  5. Enter the JS Snippet in the editor.

The JS snippet will not run automatically. You would need an event to run a snippet as you would do in any included JS library. 

 

Have more questions? Submit a request

Comments