Page 1 of 1

Integrate Google Analytics w/ Oxygen Webhelp

Posted: Wed Aug 24, 2016 6:01 am
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

Re: Integrate Google Analytics w/ Oxygen Webhelp

Posted: Wed Aug 24, 2016 4:08 pm
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