get number of unique mobile web customers
I have a site optimized for mobile devices. I want to have a statistics of how many unique users from which device has accessed my site per day or per hour etc... is there a way in JavaScript t开发者_StackOverflow社区hat I can get some unique id about the device? can i get the phone number of the device?
tanx
If you want develop your tracking system, then your real problem is unique consumer identification. And for this you could apply various techniques:
1) Use a cookie for tracking. If device or wap gateways don´t support cookies, then use url-identification.
2) Use HTTP hearders for getting unique ID. Here useful links.
3) Use some service for identification, some aggregators and carriers have it.
If you need it for statistics, then use some analytics system. You can use google analytics, but using server to server. Because many mobile don´t have good javascript support.
My understanding is that there are only so many "unique identifiers" you can collect from a user (assuming you don't give them a cookie):
IP Address
This can be spoofed via proxies, and some users have dynamic IP addresses, which change every time they connect. (Also, I've heard horror stories where sometimes the IP address changes in between queries to your server.)User Agent
Extremely easy to spoof. Also, it changes if the same user switches browsers.
Also as far as I know, there is no way for JavaScript to access the client's phone number, definitely not without their express permission. Thank god.
Just use Google Analytics - http://analytics.google.com/
There are a couple of mobile centered web analytics tools out there now.
The best one in my opinion in Percent Mobile, they offer a free plan that has limited comercial use, but the comercial plans are priced not so high, it's worth it if this is important to you.
http://percentmobile.com/
Other popular option although I haven't personally tested: http://bango.com/
EDIT: Another popular one: http://www.flurry.com
精彩评论