Using Google Analytics with Zen Foundation is easy. Simply paste your Google-provided javascript into Confluence.

On the Administration Console > Custom HTML page, paste the Google Analytics javascript into the At end of the BODY section. Like so: