An unofficial blog that watches Google's attempts to move your operating system online since 2005. Not affiliated with Google.

Send your tips to

July 1, 2008

Google Docs Stats

Update (March 2012): This feature is no longer available. "We're phasing out Google Analytics support in our new editors, but we'll be working on alternatives to provide admins with more information about their doc's viewers."

If you publish documents at Google Docs and link them from web pages, you may wonder how many people actually view them. Google helps you find this information by placing a Google Analytics tracking code that can be connected to your account.

How to get traffic stats for your documents?

Just go to Google Analytics, create a new profile for and get the tracking code for that profile. You only need a small piece of the tracking code: the value displayed in bold below, which should be different for your account.

var pageTracker = _gat._getTracker("UA-84813-6")

Once you have that value, go to Google Docs Settings, enable "Track visits to my documents using Google Analytics" and paste the value in the input box for "Google Analytics tracking code".

What happens after enabling the integration with Google Analytics?

After a couple of hours, you should see some traffic data in your Analytics account:

You'll also find a confirmation that the visitor traffic is tracked with Google Analytics after you publish a document:

The list of Google services that integrate with Google Analytics includes: Google Sites, Project Hosting, iGoogle gadgets and hopefully the support will be extended to other services.

{ via Blogoscoped Forum }

This blog is not affiliated with Google.