Device
Device targeting
All tests in Shoplift can be segmented to all devices, desktop devices, or mobile devices.
Mobile segments
When a test is segmented to mobile devices, only visitors coming to your website from devices of that category (including tablets) will be shown the test.
Desktop segments
When a test is segmented to desktop devices, only visitors coming to your website from desktop computers or laptops will be shown the test.
FAQ: How does Shoplift determine if a device is mobile or desktop?
To determine if a device is mobile, tablet, or desktop, we look at the user agent sent by the browser.
How to view a mobile test
On a mobile device
If you segment your test to mobile devices only, the easiest way you can view your test is by navigating to your tested page(s) on a mobile device in an incognito or private browser tab. If you aren't served the test variant, you can close the tab and navigate again until you are served the test variant.
As Shoplift uses local storage to track visitors, closing and reopening incognito or private tabs will clear the tracker so that you can be served both variants in the test.
On your computer
If you want to view a test segmented to mobile devices on your computer, you can do so by emulating a mobile device in your browser. If you don't know how to do this, don't worry - it's easy with a chromium-based browser like Google Chrome or Brave.
![](https://docs.shoplift.ai/~gitbook/image?url=https%3A%2F%2F314821113-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FDg2m2UmvTCMjmBjnzBKA%252Fuploads%252FLqBzDv04znNn4tyIUJKn%252FScreenshot%25202024-06-12%2520at%25204.46.57%2520PM.png%3Falt%3Dmedia%26token%3Dcb50ac9a-ad53-4dee-a9ba-a31e136afdb5&width=768&dpr=4&quality=100&sign=c4605d5c&sv=1)
Open an incognito tab in your browser
Open the Developer Tools by clicking View > Developer > Developer Tools, or using Command + Shift + C (on Mac) or Control + Shift + C (on Windows).
This will open the developer tools window. In the top center of the screen, you can select a mobile device from the "Dimensions" dropdown. This will change your user agent to a mobile device.
Navigate to your tested page(s). You will now be placed in the A or B version of your test.
Last updated