Help! How to set up google analytics

This is a useful forum thread on how to do it, hope you can get it working!