Skip to main content

Introduction to Mojito JS Delivery

The Mojito JS Delivery component is a lightweight (<5.5kb) JS framework for building, publishing and tracking experiments on the web. Commonly known as A/B split testing, experimentation is a core pillar of Conversion Rate Optimisation.

Mojito delivery module

Prerequisites

Getting setup

  1. Fork the Mojito JS Delivery repository on GitHub
  2. Clone your forked repository (not this original one) to your local environment
  3. Install the necessary NPM packages: npm install

Creating and launching experiments

Get up and running with Mojito experiments in 4 steps:

Step 1. Experiment setup

Learn about different approaches to setup experiments with Mojito. Get to know and understand important experiment parameters.

Read about experiment setup.

Step 2. Customisation and tracking

Set up custom tracking, error handling & user exclusion rules for your entire container.

Read about customisation and tracking.

Step 3. Build container, preview and launch

Use the npm Scripts to build the Mojito container and see how to preview and launch experiments.

Read about the build, preview and launch process.

Step 4. Hosting and publishing

Host your container and automate the publishing process using CI.

Read about hosting & publishing via AWS & Bitbucket

Experiment data and analysis

Data storage and analysis are contained in separate Mojito modules which can be customised and/or switched out as needed.

  1. Storage: Data collection modules and data modelling steps to power your reports. e.g. Mojito Snowplow Storage
  2. Analytics: Tools to measure & report on the effects caused by your treatments. e.g. Mojito R Analytics

Get involved

Let us know if you encounter any issues and reach out to us if you need a hand getting set up.