Andrew McDonough

Please note: This page is imported from my wiki, which hasn't been updated in over 10 years. Some of the formatting was lost during the import. I'll try to get around to fixing it someday.

Google Analytics

Google Analytics is my preferred method for monitoring visitors to your website. To set it up:

  • Sign up at www.google.com/analytics
  • Add the following to each of your pages, substituting UA-YOUR-GOOGLE-ID with the tracker ID Google issues you with:

Wordpress

Add the markup just before the tag to the footer.php file in your theme’s templete directory e.g. if you are using the classic template, add it to wp-content/themes/classic/footer.php

DokuWiki

Add the markup above to the file lib/tpl/defaul/main.php before tag


Andrew McDonough

Andrew McDonough is a consultant CTO and software developer, currently based between Berlin and London.

Follow Andrew on Twitter or Connect on LinkedIn