Skip to content

Commit

Permalink
Tracker.path()
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-leonov committed Mar 16, 2012
1 parent 316da72 commit f26b748
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions src/modules/tracker.js
Expand Up @@ -31,10 +31,29 @@ var Me =
}
},

send: function (data)
path: function (path)
{
try
{
var q =
'vr=' + escape(this.version) +
'&s=' + escape(this.session) +
'&p=' + escape(path)

this.send(q)

return true
}
catch (ex)
{
this.log('could not report a path')
}
},

send: function (q)
{
var r = new Image(1, 1)
r.src = this.reportPath + '?' + data
r.src = this.reportPath + '?' + q
},

log: function (str) { try { console.log(myName + ': ' + str) } catch (ex) {} }
Expand Down

0 comments on commit f26b748

Please sign in to comment.