How to Integrate Google Analytics in WebHelp Classic Output

To allow your WebHelp system to benefit from Google Analytics reports, follow these steps:

  1. Create a new Google Analytics account (if you do not already have one) and log on.
  2. Choose the Analytics solution that fits the needs of your website.
  3. Follow the on-screen instructions to obtain a Tracking Code that contains your Tracking ID.
    A Tracking Code looks like this:
     (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
     ga('create', 'UA-XXXXXXXX-X', 'auto');
     ga('send', 'pageview');
  4. Save the Tracking Code (obtained in the previous step) in a new HTML file called googleAnalytics.html.
  5. In Oxygen XML Author, click the Configure Transformation Scenario(s) action from the toolbar (or the Document > Transformation menu.
  6. Select an existing WebHelp transformation scenario (depending on your needs, it may be with or without feedback, or the mobile variant) and click the Duplicate button to open the Edit Scenario dialog box.
  7. Switch to the Parameters tab and edit the webhelp.footer.file parameter to reference the googleAnalytics.html file that you created earlier.
  8. Click Ok.
  9. Run the transformation scenario.