Device model

GNC2019
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

Reply 1 (1)
vix
Shopify Staff
Shopify Staff
540 103 117

 

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