SocialHistory.js – a solution (problem?) to check where your users have been. It uses CSS a:visited to check whether or not a user has been to a pre-defined site will help you if you are a person that needs to know your visitor’s browsing patterns and customize parts your site based on it.
Based on an old trick, Aza Raskin developed a nifty js around it to check which social bookmarking websites your visitors use. Explaining how it works, Raskin says
By using a cute information leak introduced by CSS. The browser colors visited links differently than non-visited links. All you have to do is load up a whole bunch of URLs for the most popular social bookmarking sites in an iframe and see which of those links are purple and which are blue. It’s not perfect (which, from a privacy perspective, is at least a little comforting) but it does get you 80% of the way there. The best/worst part is that this information leak probably won’t be plugged because it’s a fundamental feature of the browser.
<script src="http://aza.googlecode.com/svn/trunk/SocialHistory/SocialHistory.js"></script>
<script type="text/javascript"><
!--
user = SocialHistory();
var visitsDigg = user.doesVisit("Digg");
var visitsSlashdot = user.doesVisit("Slashdot");
var listOfVisitedSites = user.visitedSites();
// -->
</script>
One can extend this to do other interesting things like
Guess a user’s gender or tell whats on your user’s mind
Links:
Vote! How to Detect the Social Sites Your Visitors Use
Using your browser URL history to estimate gender
SocialHistory.js: See Which Sites Your Users Visit
Automatic favorites import using browser history
Using your browser history to tell what’s on your mind
Related posts:
- Ajax Push Engine – Javascript framework to handle 100,000 concurrent users From their website, Ajax Push Engine (APE) is an OpenSource...
Tags: browser history, css, javascript, social bookmarking, social media, SocialHistory.js
