Integrate Google Analytics w/ Oxygen Webhelp

Post here questions and problems related to editing and publishing DITA content.
urbanrobots
Posts: 86
Joined: Sun May 03, 2015 7:34 pm
Location: San Francisco

Integrate Google Analytics w/ Oxygen Webhelp

Post by urbanrobots »

Hi,
We use the standalone Oxygen Webhelp plugin to generate HTML webhelp output. Can you explain how to integrate Google Analytics in the output? We are interested in capturing analytics from webhelp stored on a local file system and webhelp served from a web server.

This page explains how to integrate Google Analytics from the Oxygen user interface, but we have the Oxygen Webhelp plugin integrated into our hosted DITA-OT, and there's no user interface.
https://www.oxygenxml.com/doc/versions/ ... ytics.html

Thanks for your time,
Nicholas
alin
Site Admin
Posts: 268
Joined: Thu Dec 24, 2009 11:21 am

Re: Integrate Google Analytics w/ Oxygen Webhelp

Post by alin »

Hello,

You should append the webhelp.footer.file parameter to the command line that runs the WebHelp transformation.
It should point to the file containing the Google Analytics Tracking Code.

For example:

Code: Select all

-Dwebhelp.footer.file=[path-to-google-analytics-file\googleAnalytics.html]
Note, that this parameter is available only for the WebHelp Classic output. If you want to obtain a WebHelp Responsive output, you should use the webhelp.fragment.after.body parameter instead.

You can read more here:
https://www.oxygenxml.com/doc/versions/ ... eters.html
or
https://www.oxygenxml.com/doc/versions/ ... ders_usage
Alin Balasa
Software Developer
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply