I am looking for a good solution to do mobile analytics for Jquery mobile . I did check this question
Flurry Analytics vs Google Analytics on the mobile platform
but these are all solutions for a platform specific/ phone manufacturer specific but jquery mobile works on all platforms irrespective of the manufacturer or operating system. Essentially i am looking for a analytics solution for webapps.
Additional Info:- bango seems expensive at $49/month. Admob wont work since we dont need it for advertising and not for placing ads.
I'm using the following:
The 'pageshow' event fires even for the first page, so don't think you want to include the _trackPageview with the GA setup. Also, location.hash will return url with the "#" character so hash.subtr(1) cleans that off which will normalize hash/pushstate visitors.
Update 11/30/11: Added check for hash length for ie bug (from: Paulo Manuel Santos).
I use the following bits of code for Google Analytics and it works well:
The following is pretty much the normal Google Analytics setup:
The update for jQuery Mobile is here so that each pseudo-page is logged: