[oXygen-user] Adding a Google Analytics code for our xHTML output

Scott Barney sbarney at 4js.com
Fri Jan 17 11:10:44 CST 2014


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>
"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:

 <mailto:sbarney at 4js.com> sbarney at 4js.com

Description: Skype:

scott.barney

Description: Web:

 <http://www.4js.com/> http://www.4js.com



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

 <http://www.linkedin.com/groups/Genero-Community-4105129> Description:
LinkedIn  <http://www.youtube.com/user/FourJsGenero> Description: YouTube

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.oxygenxml.com/pipermail/oxygen-user/attachments/20140117/f136f56c/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 13718 bytes
Desc: not available
Url : http://www.oxygenxml.com/pipermail/oxygen-user/attachments/20140117/f136f56c/attachment.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 715 bytes
Desc: not available
Url : http://www.oxygenxml.com/pipermail/oxygen-user/attachments/20140117/f136f56c/attachment.jpe 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 643 bytes
Desc: not available
Url : http://www.oxygenxml.com/pipermail/oxygen-user/attachments/20140117/f136f56c/attachment-0001.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 642 bytes
Desc: not available
Url : http://www.oxygenxml.com/pipermail/oxygen-user/attachments/20140117/f136f56c/attachment-0002.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 686 bytes
Desc: not available
Url : http://www.oxygenxml.com/pipermail/oxygen-user/attachments/20140117/f136f56c/attachment-0003.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 720 bytes
Desc: not available
Url : http://www.oxygenxml.com/pipermail/oxygen-user/attachments/20140117/f136f56c/attachment-0004.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 720 bytes
Desc: not available
Url : http://www.oxygenxml.com/pipermail/oxygen-user/attachments/20140117/f136f56c/attachment-0001.jpe 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 1091 bytes
Desc: not available
Url : http://www.oxygenxml.com/pipermail/oxygen-user/attachments/20140117/f136f56c/attachment-0005.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 1169 bytes
Desc: not available
Url : http://www.oxygenxml.com/pipermail/oxygen-user/attachments/20140117/f136f56c/attachment-0006.png 


More information about the oXygen-user mailing list