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:
| property | type | description | default |
|---|---|---|---|
| width | integer | the width of the widget in pixels | 300 |
| height | integer | the height of the widget in pixels | 250 |
| url | string | the url to lookup | window.location |
| show | string | which bit.ly statistic to show, choose from: clicks_by_day, referrers, countries (more coming soon) | clicks_by_day |
| div | string | the 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 creates | bitlymeter |
| nofollow | boolean | whether you want to set rel="nofollow" on the link back to bitlymeter.com - if true nofollow will be added | false |
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