Detect iPad and iPhone using Javascript

I’ve got some people asking for a simple Javascript-Detection for iPad’s.

It’s simple, just take a look at the browser identification:




Example:


It basically searches in the browser information for any occurence of “iPad” or respectively “iPhone” and returns true if found.

Here’s an example of Safari’s identification on the iPad:


htty www.google.com

I’ve just stumbled on a tweet mentioning htty while I was researching some stateless web architecture and found this:

A blog entry Introducing ‘htty’, the HTTP TTY that is about a very cool console tool to “browse” the web. It allows you to connect to any webserver and take a look at what is really happening with your web connections.

It is perfect to analyze the response of your own websites or learn more about others.

I often have problems analyzing several forwards in tracking links because everyone uses his own tracking and AdServer, resulting for me to use telnet to do all the http requests by myself. This is the tool I was missing all the time :-)

Just follow the white rabbit err link ( http://blog.nilsjonsson.com/post/1076166313/introducing-htty-the-http-tty ) to learn more about this new “must have” for web developers ;-)

favo$ gem install htty
[..]

Analytics for iPad, Release 1.5 + Authentification Problems

Yesterday (the 11th) a very small change in the Google Webservers broke the Authentification Handling in Analytics for iPad. The problem was on our end and is already fixed.

This caused the 1.5 Update to be submitted today instead of the end of the month, having to remove some of the new features that were originally planned for this release.

But it still contains some great new features! There is a new Metrics-Selection which allows you to choose which data to use in the graphs. For example: You can analyze your AdWords with bounce rates.

What is very exciting, is the possibility to even compare metrics in a graph! For example: Find out how the average time a user spends on your page combines with your revenue!


Here is the list of all the changes:

New Features:

  • Metric Selection: switch metrics for your graphs
  • Metric Comparison: Compare two metrics in a single graph (i.e. Average Time on Page vs. $ Index)
  • Search option for many Traffic Sources
  • Options to select all 5 Goals of all 4 Goal Sets (named Goals will follow soon, they were originally planned for this release)
  • New Option: Graph by Hour, Day, Week or Month
  • Optional: Access for up to 5 custom reports added. This functionality is enabled by default.
  • Map Overlay Reports for: US States, Americas, Asia, Europe and Oceania


Improved:

  • Support for up to 10.000 websites per account added (previously 100 websites per account)
  • Quick time selection for this and last week is based on the current day instead of the last completed week
  • Quick time selection also sets the compare time, based on the selected timeframes
  • The upgrade process received its own status message
  • Small GUI improvements


Bugfix:

  • A bug in the auto-Login procedure which prevents reports from being displayed
  • website names got cut off at some special characters, not displaying the complete configured name
  • If the last selected timeframe was “Today”, it is also saved and set again on the next start.
  • Broken Login with Google Analytics

 

2010/07/17 – Today the update hit the store, watch out for update notices in iTunes or the App Store to get it on your iPad!

Switch to our mobile site