To add the JavaScript needed by Google Analytics to DotClear I simply added a text widget using the Presentation widgets menu option. Keeping the Title empty makes the script appear invisible, and dechecking the Home page only checkbox adds the script to every page.
Archive of posts tagged Google Analytics