0
How can I get number of users visiting my web page are using mobile or desktop without using any tools?
5 Answers
+ 4
Ashwin Maurya ,
Do you think this is not code related? š¤ How?
+ 3
Okay sorry my bad i thought hes asking about his profile page in sololearn
+ 2
Code_hack ,
I think using google analytics is a good solution to your problem.
See I have never used analytics on my site so I can't tell you how to use it. but you'll certainly find many tutorials on internet.
https://analytics.google.com/analytics/academy/course/6
https://crossbrowsertesting.com/blog/development/use-google-analytics-find-devices-customers-use
+ 1
Code_hack , Welcome.
Google analytics is free for small businesses and individuals. That's why I was recommending it.
I am not sure how to do it without using analytics. Maybe you can use database on backend. Get the device type using this method:
https://stackoverflow.com/a/3540295/12485639
Whenever user visits the page send http request to backend and update DB accordingly. See I'm just guessing. you can ask someone more experienced :)
0
Thanks Omkar, I don't want to use any tools like that. And the site can be accessed within a vpn only.