Using Google Analytics to track events
There was some work done on CiviCRM integration with Google Analytics as a part of Google Summer of Code program.
This should be a good base. Check https://civicrm.org/blog/vishalagarwal/gsoc-completion-report-on-integrating-google-analytics-with-civicrm