Category Archives: Google

I recently came across a small problem in RSH whereby on loading a page with a state in the url (e.g. localhost.com/test_page#test) would not trigger the history listener function on it’s initial load. To fix this, I needed to modify my window onload function to include a call to my history listener, as follows:


history_listener: function (newLocation, historyData) {
...
},

// Window.onload calls this
initialize_history: function () {
       	dhtmlHistory.initialize();
       	dhtmlHistory.addListener(this.history_listener.bindAsEventListener(this));

       	// Added this line to force a call to my history listener
       	this.history_listener(dhtmlHistory.getCurrentLocation());
}

This ensures that when the page is freshly loaded, the history listener is called with the contents of our initial location.

Well, I first came across Google’s free web analytics program the other day, and so far my impression is mixed. The idea of having a site analysis system provided by the top-notch design and development teams at Google is fantastic, however, it would appear that they have underestimated the popularity of the service somewhat.

I added the tracking code to both Kyotee and Bouldr’s holding page yesterday. Google’s system recommended that I wait 12 hours for my data to show up (although in the help section, this period was given as 6 hours) - after which, my stats would be updated on an hourly basis. Ace.

Unfortunately, it was not to be - after 15 hours, still nothing. Also, the help system seems to be a little out of sorts - it keeps displaying 404’s when I click through links to get to different articles, then when I retry a second later, the link takes me to the correct document.

It’s like being given a wonderful present, then realising that it’s broken, so you won’t really be able to use it for a few days.

Coincidentally, I feel a headache coming on.