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 and save up to 25% on Shopify when you sign up for an annual, 2-year, or 3-year plan.

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.