Integrate your Web Help with Google Analytics - On Premises: 6.4


Enable Google Analytics for your Web Help in order to track customer interaction with your content.

You need to sign up with Google Analytics and create an account for the site. The account ID for the site must be added to the index.htm file.

To enable Google Analytics integration in Web Help:

  1. Open the index.htm file and locate Google Analytics tag in the head section.
  2. Uncomment the script code.

    <!--<script type="text/javascript">

    var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");

    document.write(unescape("%3Cscript src='" + gaJsHost + "'type='text/javascript'%3E%3C/script%3E"));


  3. Locate the Google Analytics Account ID tag near the end of the body section (near the end of the configuration section).

    <!-- Google Analytics Account ID -->

    <input id="googleAnalyticsAccId" type="hidden" value="" />

  4. Add your account ID to the value. For example,

    <!-- Google Analytics Account ID -->

    <input id="googleAnalyticsAccId" type="hidden" value="UA-12345678-9" />

  5. Save the changes to the file. Publish your book to Web Help and upload the content to your server.

    Note: The files index.htm and webhelp.js have been modified to implement Google Analytics in the WebHelp template.