How to identify mobile or desktop device accessing your Shopify store?

Sell Online With Shopify
Trusted by millions of businesses worldwide
Start your Shopify 14-day free trial + pay only $1 for your first month.

You want to detect mobile or desktop device accessing your Shopify store to do a task: If customer is accessing the site from a mobile device execute script A, else execute script B.

The below Javascript to help you do that.

DEMO

You may also like...

Leave a Reply

Your email address will not be published.

Sign up for a free Shopify 14-day trial and start selling today.

X