Add Google Analytics to a Multi-volume WW 5.0 Project
This page describes how to get Google Analytics working in a multi-volume help project.
Getting Google Analytics Results for Each Page
To generate Google Analytics reports from each page in a mult-volume WW 5.0 help system:
- Insert the Google Analytics script as the first script on each page in your project. To do this, override the content of the following files:
PROJECT_DIR\Formats\WebWorks Help 5.0\wwhelp\wwhimpl\common\html\wwhelp.htm PROJECT_DIR\Formats\WebWorks Help 5.0\wwhelp\wwhimpl\js\html\wwhelp.htm
- Also, override the page template:
PROJECT_DIR\Formats\WebWorks Help 5.0\Pages\Page.asp
- page adding the script as the first script in the head tag. This puts the GA script in the individual pages.
Generate your documentation into subdirectories that do not contain spaces or special characters. Google Analytics can't really handle them. When you are done, each group name on the Webworks Document Manager pane should appear without spaces and special characters.
Use the Webworks Merge Settings dialog to specify how the group name appears in the generated table of contents.
- The top level file in your site should contain the GA code. Actually, GA says *every* page and this is how I tested. Typically, the top level file is the index.html but your Webmaster can tell you for sure.
Your site should be indexed by Google's Webmaster tools. The indexer did not require a script but it did require registration to use.
NOTE: You can also generate a site map using Google's Python script. Details at Google Webmaster Tools.