Originally I tried having Google ignore my IP address but since it does change from time to time and I also enjoy checking my site at work too... I needed something more robust. When you only get a handful of visitors a week, it's important to not have your own traffic skewing the reports!
After setting up your special page and tweaking your Google Analytics settings, whenever you want to view your website, go first to this special web page and then all of your traffic will be excluded from your reports.
User-agent: *
Disallow: /nogoogle.html
Allow: /
<script>
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-XXXXXXX-X']);
_gaq.push(['_setVar','test_value']);
_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>
Name of Filter: Exclude me
Filter Type: Custom filter > Exclude
Filter Field: User Defined
Filter Pattern: test_value
Case Sensitive: No

Name of Filter: Exclude Localhost
Filter Type: Custom filter > Exclude
Filter Field: Hostname
Filter Pattern: localhost
Case Sensitive: No