How do I check which device was used to buy my products?

How do I check which device was used to buy my products?

bigello
Shopify Partner
4 0 1

I want to know if my buyers are using Android or iPhone to buy my products. Is there a way to check? (not the sessions but the device type used for purchase) and not only mobile, but the type of mobile e.g. iphone or android)  Cheers. 

Replies 5 (5)

Blair
Shopify Staff
2067 273 250

Hey @bigello,

 

Thank you for reaching out to the Community! I'm happy to provide some guidance with generating a report that includes device type as a field, to get this resolved. While this is not natively available within the shops analytics, I recommend checking out the Shopify App Store for an app that may allow for you to achieve this. I've gone ahead and recommended a few you can check out: 

 

 

As I can completely understand how this may not be ideal, I'm happy to make note of this suggestion with our Developers. We are always looking for ways to improve the platform and appreciate the feedback. As a workaround however, you can look to the apps suggested above as well as our Analytics Documentation for what is currently available. 

 

Please let me know if you have any other concerns! 

Blair | 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 the Shopify Help Center or the Shopify Blog

speedboostr
Trailblazer
136 20 26

@bigelloif you're looking for cumulative stats Google Analytics has this.

 

If you're looking for granular stats, another idea that you could do using code in your theme:

 

1. Add some JavaScript code on the product page that detects the user's device and adds it as a line item property so that when the user clicks Add to Cart that data is stored in the line item data.

 

2. When the user checks out, this data will now show on the order details page in your admin.

 

3. If you want to take a step further and organize orders based on the device you can create rules in Order Automator app to automatically tag orders based on the line item properties (contains iOS for example). Once those orders are tagged, you can filter them by tag and export those customers if you want to do certain marketing to them.

 

Here's an example script you can put in your theme code to test and see what the output looks like in the dev console. If you're not familiar with using a dev console see this article: https://speedboostr.com/finding-and-fixing-console-errors.

<script>
// This will show the users's device and browser info
console.log("User info: " + window.navigator.userAgent);
</script>

 

 That script will help you get the device info, then you would add a hidden element to your product page that adds that info (or whatever you want) to show up as a line item property.

 

If you need help implementing that feel free to reach out to my team of professional Shopify developers at speedboostr.com/contact. We can do pretty much anything development-wise in a Shopify store.

Creator of Theme Scientist (A/B testing app and theme scheduler). Creator of Shopify Analyzer (1st performance analysis tool for Shopify, free for the community). Founder of Speed Boostr (Shopify optimization experts + app developers). More apps from our team: Tip Jar (add a tip button), File Optimizer (optimize CSS, JS, Liquid).

BetterReports-C
Shopify Partner
95 0 7

Hi @bigello 

Claudia here from Better Reports.

Have you been able to find a solution? If not, I would recommend our app Better Reports for this.

We have a set of 4 built-in fields regarding the customer device allowing you to add brand, model and type to your sales reports.


In addition to this, Better Reports has more than 60 built-in reports available out of the box that cover many common use-cases for merchants. You can schedule reports to run at set frequencies to your email or Google Drive or export the reports in CSV, Excel or PDF format.

I encourage you to install Better Reports and start your free 14-day trial and I'll be happy to set this up for you.

 

What do you think?

Jonathan-HA
Shopify Partner
333 25 105

Hey there @bigello ,

 

The Order API has this information stored under client_details.user_agent.

 

The data will look something like these below:

 

Mozilla/5.0 (iPhone; CPU iPhone OS 15_4_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.4 Mobile/15E148 Safari/604.1

 

Mozilla/5.0 (Linux; Android 8.1.0; Moto G (5)) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Mobile Safari/537.36

 

As you can see, it even gives you the OS version and sometimes even the phone model.

 

To view this data via the Shopify Admin, simply go to the order detail page and then append .json to the URL after the Order ID to view the raw JSON data for the order, similar to what the API provides (more info here).

 

If you need to export this data to CSV/Excel in bulk, our app EZ Exporter can also do this for you and you just need to select the field called client_details.user_agent in the app to include this in your report.

Co-Founder / Developer at Highview Apps
Our Shopify Apps: EZ Exporter | EZ Inventory | EZ Importer | EZ Notify | EZ Fulfill

Sankalp_Raul1
Shopify Partner
17 0 8

You can try Yandex Metrica. It's similar to Google Analytics. It's free and also has a feature to track the screen heat map and customer's behavior with screen recording etc.

There was a bug on my website while using older browsers. The video recording feature helped me to find that bug.