Skip to content

Instantly share code, notes, and snippets.

@DinisCruz
Created April 13, 2012 10:30
Show Gist options
  • Save DinisCruz/2375660 to your computer and use it in GitHub Desktop.
Save DinisCruz/2375660 to your computer and use it in GitHub Desktop.
Gaug.es customization to feed page events
var my_Gauge =
{
data_site_id : '....'
, title : null
, resource : null
, track : function(title, resource)
{
my_Gauge.title = title;
my_Gauge.resource = resource;
_gauges.track();
}
};
....
, url:function()
{
var a,b
//TM changes - start
//d=this.$('gauges-tracker');
// if(d)
{
//b=d.getAttribute('data-site-id');
b = my_Gauge.data_site_id;
//a=d.src.replace('/track.js','/track.gif');
a = "https://secure.gaug.es/track.gif"
var title = my_Gauge.title ? my_Gauge.title : this.title();
var resource = my_Gauge.resource ? my_Gauge.resource : this.resource();
.....
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment