# URL Parameters

Append these to any page URL to control Shoplift's behavior without modifying code.

| Parameter                   | Effect                                                                                              |
| --------------------------- | --------------------------------------------------------------------------------------------------- |
| `?slVariant=<hypothesisId>` | Forces `isHypothesisActive()` to return `true` for the specified hypothesis, `false` for all others |
| `?slVariant=true`           | Forces `isHypothesisActive()` to return `true` for **all** hypotheses                               |
| `?isShopliftMerchant=true`  | Switches Shoplift into merchant preview mode (stub API, no test assignment or tracking)             |
| `?isShopliftMerchant=false` | Exits merchant preview mode                                                                         |

{% hint style="warning" %}
`isShopliftMerchant` persists in **sessionStorage** — once set, it affects all subsequent pages in the same browser tab until the session ends or you explicitly set `?isShopliftMerchant=false`.
{% endhint %}

#### Examples

Force a specific variant:

```
https://yourstore.com/products/example?slVariant=aa800953-3e22-4335-a53b-50f61db17538
```

Force all variants active (useful for visual QA):

```
https://yourstore.com/?slVariant=true
```

Enter merchant preview mode:

```
https://yourstore.com/?isShopliftMerchant=true
```

Exit merchant preview mode:

```
https://yourstore.com/?isShopliftMerchant=false
```


---

# 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.shoplift.ai/api-reference/debugging-and-testing/url-parameters.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.
