BitlyMeter - portable bit.ly statistics

Simply copy and paste the code below into your web page to display a widget showing bit.ly clicks by day statistics for that page:

<script type="text/javascript" src="http://api.bitlymeter.com/bm.js"></script>
<div id="bitlymeter"></div>

BitlyMeter Configuration Options

BitlyMeter can be configured by declaring a javascript object variable named bmConf. The following properties can optionally be set:

propertytypedescriptiondefault
widthintegerthe width of the widget in pixels300
heightintegerthe height of the widget in pixels250
urlstringthe url to lookupwindow.location
showstringwhich bit.ly statistic to show, choose from: clicks_by_day, referrers, countries (more coming soon)clicks_by_day
divstringthe id of the html div element on your page where bitlymeter should render itself, and the prefix that will be used for the id attribute of other div elements that BitlyMeter createsbitlymeter
nofollowbooleanwhether you want to set rel="nofollow" on the link back to bitlymeter.com - if true nofollow will be addedfalse

BitlyMeter Configuration Example

The code below illustrates how to configure BitlyMeter, and also shows the default values for each property:

<script type="text/javascript">
var bmConf = {
width: 300,
height: 250,
url: window.location,
show: 'clicks_by_day',
div: 'bitlymeter',
nofollow: false
}
</script>
<script type="text/javascript" src="http://api.bitlymeter.com/bm.js"></script>
<div id="bitlymeter"></div>

Created by Finbarr Taylor - Contact - Twitter

BitlyMeter clicks by day BitlyMeter referrers BitlyMeter countries