Tracking multiple projects on one page

You can create multiple trackers, each with its own project.  The standard tracking script has this code:

gator = new Aggregator(12345);
gator.logPageview(location.pathname);

This creates a tracker for the project with id 12345 and posts a pageview to gator (see the Manage Projects menu item to get the tracking scripts and project ids).

To create another tracker, add this example code:

var project2 = new Aggregator(678910);

project2.logPageview(location.pathname);

This creates a new tracker for the project with the id of 678910.  It can be used throughout the page, just like the standard tracker.  For example, to track an event, you would call:

project2.logEvent('MyEvent');