Welcome to the DEMO & EXAMPLES web site for Open Web Analytics. The data contained in the demos and examples comes from the live usage of this site. Historical data is truncated periodically.

Tracking a web page using OWA's Javascript Tracker

Consult the OWA wiki for more information and documentation on OWA's Javascript tracker.

Tracking a web page using OWA's Javascript tracker is as easy as cut and pasting the Javascript code into your web page.

The Code

Here's what the tracker code looks like:

<!-- Start Open Web Analytics Tracker -->
<script type="text/javascript" src="http://yourdomain/path/to/owa/modules/base/js/owa.tracker-combined-min.js"></script>
<script type="text/javascript">
// Set base URL
OWA.setSetting('baseUrl', 'http://yourdomain/path/to/owa/');
// Create a tracker
OWATracker = new OWA.tracker();
<!-- End Open Web Analytics Code -->

If you have used another web analytics package, this code will look probably similar to what you had on your site in the past. You need to fill in the proper paths to your OWA server and the site ID to set things up properly, but after you do that, just cut and paste this code into the body of your web page and OWA will do the rest.

To save you time, OWA's admin interface will generate a customized version of this code for you with the correct site ID, etc. Just login to your OWA instance and go to Settings -> Site Roster -> Get Tags to generate the tracker code for the site you wish to track.

You can also do a lot of customization of the tracker Javascript. See the OWA Wiki or some of the other examples for more detail.