Updated 2011-06-30: Changed to asynchronous Google Analytics tracking
You’ve chosen Confluence as your Enterprise wiki and got it installed. People are using it. But how many people?
You could have a look at the Global Activity page on Confluence, but this might confuse matters.
You’ll get to see graphs, but what do they really mean? The Global Activity statistics are at best very basic.
Better still, install Google Analytics and you’ll have a much more accurate idea of what’s going on. Best of all, it’s really easy to install.
How to install Google Analytics on Confluence
I’m assuming (for my sake) that you already know your way around Google Analytics.
In Google Analytics
Login to Google Analytics and add a new website profile
The settings will roughly mirror those in the screenshot below
Make sure that you check “Do Track Site Search” against Site Search. Add queryString as the Query Parameter. This will allow you to monitor who is searching for what.
Edit the Search Settings configuration like in the image to see search terms grouped by spaceKey in the internal search categories reports. Further details why can be seen here
The top search terms will suggest either content that’s missing from the site, or something that is not easily found in the current information architecture. Either way, tracking this and acting on the findings should improve the user experience.
Dashboard | Administration | Look and Feel | Custom HTML
This works nicely, particularly as the custom variable allows us to easily track all space related content separately, and thus facilitate the use of the (Google) Analytics reporting plugin for Confluence.
Note for users of Zen Foundation
Zen Foundation overrides the At the end of the HEAD field, so adding the tracking code there will fail for Zen Foundation users. Instead, pop it at the end of the BODY.
Note for users of Google Analytics plugins that track user’s names
If you’re using a plugin that tracks users names by sending the name to Google, you will be in violation of the Google Analytics Terms of Service. Find out more by reading Identifying your users in Google Analytics while complying with section 7 of the terms of service.
If you are unsure of the plugin’s compliance with the Google Analytics Terms of Service, ask the plugin vendor for more details of how they comply with comply with section 7 of the Google Analytics terms of service.
To prevent you from falling foul of this, I recommend AppFusions’ Google Analytics for Confluence plugin which is fully compliant with section 7 of the terms of service.
Related Posts (Updated)
- Identifying your users in Google Analytics while complying with section 7 of the terms of service
- 4 Useful Tips on Google Analytics Reporting for Confluence
- Announcing: Google Analytics plugin for Confluence
- How to track Confluence usage with Google Analytics by Remo Siegwart