Mining Google Analytics data with Bit.ly links
January 23, 2011
Facebook, LinkedIn, and Twitter – Who’s the cooler audience?
Using Google Analytics, you’re able to track information about your site, its performance, and other cool information such as traffic sources, medium, and campaign information. Being connected and using social networks such as Facebook, Twitter, and LinkedIn, you would want to know which social network produces the highest impact on traffic to your site. In essence, what you really need to do is create three separate links and then shorten it with Bit.ly.
I recently wrote a quick script that does just that – allows embedding of Google campaign information, and produces three separate links to be shortened using Bit.ly’s API. For the code to connect to Bit.ly’s API, I found the code snippet on David Walsh’s site.






