# 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:

* 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!


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.intelligems.io/integrations/savedby-testing.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
