Understanding all user actions on your website is critical for proper decision making, marking and getting the most out of your investment. A core aspect of Google Analytics is it's event tracking mechanism which allows to track non-page reload actions on your site.

These can be built into JavaScript events, like onClick, onMouseOver, onChange etc. and allow for more tracking of user activity on the site.

What to Track
In general any non-page reload / page change functionality - this is very much linked to Google Webmaster Tools and the Parameter handling feature (ie. if you use GET parameters to track page changes eg. showing a Table Of Contents etc.).

Generally, any visitor action on the site that doesn't result in a Page Load/Refresh will require an event to track it's behavior - this included embedded Flash movies.

Example Things to Track
File Downloads

User JavaScript 'OnMouseover' events

Select Box Form Changes

Page Scrolling

DIV OnMouseover Events (touch extreme)


Analytics Code


<script type="text/javascript">

var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-XXXXX-X']);
_gaq.push(['_trackPageview']);

(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();

</script>