# SavedBy Testing

## Introduction

The Intelligems [SavedBy](https://savedby.io/) integration empowers merchants to make data-driven decisions about their shipping protection strategy. By leveraging an Intelligems content test, you can split-test the SavedBy package protection widget—comparing a "Widget On" experience against a "Widget Off" control—to accurately measure its impact on conversion rates, average order value (AOV), and more.

### Prerequisite:&#x20;

* Before following these steps, please ensure that SavedBy is already installed on your website.

## How It Works

To set up a SavedBy split test:

1. Create a new Intelligems Onsite Edit content test
2. For the control group, inject the following Javascript. This sets the control group to have the widget off.

```javascript
window.SavedByAB = false; 
```

3. For the variant group, inject the following Javascript. This sets the variant group to have the widget on.

```
window.SavedByAB = true;
```

4. In SavedBy's App Settings > under Custom JS, add the following code

```
if (window.SavedByAB) {
SavedBy.enabled = window.SavedByAB;
} else {
SavedBy.enabled = false;
}
```

Now you're good to publish your test!
