> (
http://www.hawksworx.com/journal/2007/07/05/tracking-tiddlywiki-with-...)
That's great. Got lost a little way in, but have successfully loaded
code to at least track visitors to the site as a whole in the
meantime.
Yes, FND, an actual guide certainly would be nice. And if ever I feel
I properly understand how it works I'd be happy to write one:)
Also, I found this on a blog Phil recommended (http://
blog.spacelag.com/2007/10/tracking-tiddlywiki-with-google.html).
It's code to go in a tiddler he calls CustomTracker and allows Google
to track activity for individual tiddlers (this was the part of Phil's
blog that I didn't understand).
If I pasted this into my own tiddler, and changed the account number,
what else would I have to do to make it work for me? (If anyone's got
the time to look at this)
{{{
// Specify your account number here!
_uacct = "UA-1234567-1";
// CustomTracker as a namespace for tracking related functions
var CustomTracker = {
// store a reference to the original displayTiddler function
displayTiddler: story.displayTiddler
};
CustomTracker.track = function() {
if (readOnly) {
urchinTracker.apply(this, arguments);
}
};
CustomTracker.trackAndDisplayTiddler = function(srcElement, titles) {
// log with the tracker
CustomTracker.track('/' + titles);
// call the original displayTiddler function
CustomTracker.displayTiddler.apply(this,arguments);
};
// replace the default displayTiddler function with a tracking version
story.displayTiddler = CustomTracker.trackAndDisplayTiddler;
// Call once for the initial page load
CustomTracker.track();
}}}
Big thanks, Julie