List Info

Thread: DocBook Google Analytics




DocBook Google Analytics
user name
2006-05-16 22:01:23
If you use Google Analytics and want to add tracking to your
html
pages generated by DocBook, try adding this to your
customization
layer:

<xsl:template name="user.footer.content">
  <script src="http://www.
google-analytics.com/urchin.js"
type="text/javascript"></script>
  <script type="text/javascript">
_uacct = "xx-xxxxxx-x";
urchinTracker();
  </script>
</xsl:template>

Replace "xx-xxxxxx-x" with your Analytics user
id.

If you are making chunked output, change
"user.footer.content" to
"user.footer.navigation".

If you are making xhtml output, you will need to set the
default
namespace in the stylesheet that contains the above
template, like so:

<xsl:stylesheet xmlnssl=&
quot;http://www.w3.or
g/1999/XSL/Transform" version="1.0"
                xmlns="http://www.w3.org/1999/x
html">

References:
http://www.sagehill.net/docbookxsl/HtmlCustomEx
.html#HeaderExtras
http://www.oasis-open.org/archives/docbook-a
pps/200603/msg00213.html

Regards,
-- 
http://chris.chiasson.nam
e/

------------------------------------------------------------
---------
To unsubscribe, e-mail: docbook-apps-unsubscribelists.oasis-open.org
For additional commands, e-mail: docbook-apps-helplists.oasis-open.org

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )