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

circle-exclamation

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

Last updated

Was this helpful?