URL Parameters
Last updated
Was this helpful?
Append these to any page URL to control Shoplift's behavior without modifying code.
?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
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.
Force a specific variant:
https://yourstore.com/products/example?slVariant=aa800953-3e22-4335-a53b-50f61db17538Force all variants active (useful for visual QA):
https://yourstore.com/?slVariant=trueEnter merchant preview mode:
https://yourstore.com/?isShopliftMerchant=trueExit merchant preview mode:
https://yourstore.com/?isShopliftMerchant=falseLast updated
Was this helpful?
Was this helpful?