I have a downloaded evaluation instance of Confluence 4.0, but I can't test Google Analytics since the test host isn't on the Internet.
I set up an On Demand instance, but I can't see any way to install Google Analytics. The Plugins page has only the Manage Existing and Audit Log tabs.