Google recently released updated tracking code for Google Analytics which allows for asynchronous tracking. I just updated the google analytics plugin to version 2.0 which takes advantage of the new capabilities.
The best thing about version 2.0, is that you don't need to modify a template to insert the tracking code. Because the communication with google is done asynchronously, the tracking code can be placed anywhere in your template. Before, it was suggested to be placed near the bottom of your page. With the asynchronous interface, the tracking code should be placed near the beginning of the page. zenPhoto (v 1.3.1) provides an interface that enables plugins to place code in the header section. This upgrade takes advantage of this interface and the google asynchronous capabilities to insert the tracking code in the header section of you page.
What this all means is you can install this plugin, use any template you want, and always have google analytics tracking your code.
The upgrade is easy too, just replace the google_analytics.php file in the zp-core/zp-extensions directory and you're done. You don't even need to remove the old code in you're template for the version 1.1 plugin.
As a side note, I noticed that in a future version of zenPhoto (1.3.2 maybe) a new enhancement to the plugin interface will enable code to be placed at various locations, like at the beginning of the body section. When this enhancement is available, I'll provide an update which takes advantage of these capabilities.
Oh, plugin can be downloaded at http://www.moto-treks.com/extras/file-download/view.download/6/6
enjoy,
Jeff