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
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? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog
User | Count |
---|---|
2 | |
2 | |
1 | |
1 | |
1 |