I recently decided to switch to facebook comments for this blog. As a result all old comments are being discarded. Sorry for the confusion.
UPDATE: Apparently this is against Analytic’s TOS. So if you are thinking about collecting this data it might be wise NOT to.
Now that Google Analytics allows multiple custom variables it is much easier to track your users ip addresses. Simply insert the following code in your analytics tag:
pagetracker._setCustomVar(1, "IP", "<?php echo $_SERVER['REMOTE_ADDR']; ?>", 2);
To break down each variable:
- SLOT – 1 refers to the Index or “slot” – you can have up to five slots
- NAME – IP Address names the variable “IP Address” in Analytics
- VALUE – The php script echos the visitor’s ip address as the value for the above named variable
- SCOPE – The final “1″ defines the scope of the variable. Possible scopes include:
- 1 – visit level
- 2 – session level
- 3 – page level (default value)
There is a lag of about 12-24 hours before the IP addresses will show in analytics. To access this data click on Visitors->Custom Variables. A variable titles “IP” should appear in the list. Click on it to get detailed statistics. It should look something like this:
Go here to read more about Custom Variables in Google Analytics.
UPDATE: Apparently this is against Analytic’s TOS. So if you are collecting this data it might be wise NOT to.
The applicable section is:
Today I’m announcing a rapid prototype I’ve been working on for the past few days called Minview. Mobile browsing has come a long way since the dark days of the blackberry browser, but despite the recent advancements made by the iphone, palm and android devices – mobile browsers are still left wonting. While android and iphone’s webkit browsers let you zoom in on content formatted for desktop browsers, the presentation is frequently less than optimal. I was recently impressed by a fellow hacker’s implementation of a mobile version of hacker news that formats the desktop version into a highly usable mobile version with some added tricks. I encourage you to visit the site and check it out.
Unfortunately hacker news is just one of many sites I frequent on a day to day basis. So I created my own version to work on the sites I love. Minview currently has two basic ways of working. The first pulls an RSS feed of my favorite blogs and formats links to content for minimalist mobile viewing. As you can tell by visiting the default page for minview that I’m a conservative (atheist) so for the moment you may or may not be interested in the default implementation. The second, mindrudge, parses drudge report and pulls all of the non static links – pushes them into an array and then passes those links off to my server-side implementation of “readability“.
Minview has a few cool features on top of the traditional readability script. Namely it:
- parses images and embedded objects and automatically resizes them to fit in your mobile browser
- updates the viewport when an iphone changes orientation (not sure if this works on android)
- selects all links in parsed pages and prepends a link so they are automatically parsed via minview
- can parse any page by sending the url to: minview.com/out/?url=[url here]
As always I appreciate your feedback and if you have requests for any sites to be added please let me know in the comments.