A highly requested feature has been to be able to view the /stats/ page for all of your sites at once (e.g. sum them up), or to officially support multiple tracking codes on one site (which doubles the amount of traffic you log, but lets you have a “master” site_id that logs all traffic for all of your sites).

The former option is more appealing to us for bandwidth and storage reasons, but the latter is easier to do because it only involves changes to a single file instead of a huge rewrite of the internal code. Using multiple tracking codes did already work to some degree, but there were a lot of bugs because it was not originally designed to work like that.

Well, no more! Alexander, one of our new developers, undertook as his first project a fairly major rewrite of the tracking code to officially support having multiple copies on a single page. I would however like to reiterate that we don’t really like supporting this, because it doubles storage and bandwidth requirements on our end for your account – but, we know this is important to a lot of you so here it is. Do keep in mind that if you do this, you may need to upgrade your account to a higher level to support the additional traffic you’ll be logging.

The code has also been updated to allow for dynamic clicky_custom updates. This is mainly of importance for those of you doing fancy things with Javascript, but if it affected you, you will appreciate this. Previously, once a page was loaded, clicky_custom was “static” – any updates you made to it dynamically (e.g. if you refresh a page via Ajax) would not be reflected in future calls to our tracking servers until the page was fully reloaded. But now the code checks the current status of clicky_custom for every single request, so if anything has updated since the last full page refresh, that new data will be sent along to us. This probably only affected a few hundred of you at the most, but one of those who was affected was myself, and it was driving me mad. Being a customer of my own business has its benefits.

One last thing. If you’re currently using the asynchronous tracking code, we have made some minor (but important) changes to the format of the code that you paste onto your site. If you are planning to use multiple asynchronous codes on a single page, you’ll need to update to use the new format that you paste onto your site. Otherwise, you can leave the code as is.