Have you tried adding to layouts/default.php ?
I prefer to put the code into its own php file (in this example named analytics.php) and call it using the code:
- Code: Select all
<?php include_once("analytics.php") ?>
Immediately after the body tag.
There is a different analytics code available from Google for iphone and android, you can add these into the appropriate files also.