Device model

New Member
1 0 0

Hi Y'all!

I want to add a banner/ link to my site, by clicking on the link/banner the user will get the device model he is browsing from and will be transferred to the relevant collection/product.

An example for this kind of feature I have fund in mymemory.co.uk (available only on mobile) 

If anyone here know the solution for this I will most defiantly will like to use his services 

WhatsApp Image 2019-10-28 at 16.39.35.jpeg

0 Likes
Shopify Staff
Shopify Staff
190 21 21

 

Hi @GNC2019 Are you utilizing the Storefront API or our SDK's? If not, this is a better question for our general design forums.

 

In general, the information you will need is stored in the User Agent header. It is information sent from the browser that identifies what type of User is accessing the website. It can be identified through a process called browser sniffing. For more information please see: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/User-Agent

Vix | Developer Support @ Shopify
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Click Accept as Solution 


0 Likes