We are using DITA and DITA-OT with the oXygen WebHelp plug-in to create our online documentation (with a customized DTD).

We would like to use Google Analytics to track our Web page usage. According to my webmistress, we will need to include our Google Analytics tracking code (which looks something like UA-99999999-9) in each page output.

 

The code that we’ve added for our other Web pages appears similar to this (account number has been modified in this example):

 

<script type="text/javascript" async="" src="http://www.google-analytics.com/ga.js">
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-29999999-2']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>

 

Is there an option in the WebHelp plug-in that would allow us to simply add this type of code to the <head> element? Or could it possibly be as simple as adding proper metadata to our DITA files?

 

Thanks,


Scott

 

Description: Four Js - The Power of Simplicity

Scott Barney – Content Manager / Information Architect / Technical Writer / Instructional Designer

Description: Telephone:

+1 972 786 0926

Description: Mobile:

+1 415 336 7748

Description: Fax:

N/A

Description: Email:

sbarney@4js.com

Description: Skype:

scott.barney

Description: Web:

http://www.4js.com


Four Js Development Tools, Inc.
1968 15th St, San Francisco CA 94114 , USA

Description: LinkedIn Description: YouTube