[GeoNetwork-users] google analytics

Hi All,

How do I add a google analytics tracker code to a geonetwork app? The
homepage is created dynamically so I'm struggling to figure out where I
could put the code so it registers at least hits to my homepage.

Thanks

Giuseppe

Hi Giuseppe

The file geonetwork/xsl/main.xsl contains the xsl template that creates the
layout of the GeoNetwork pages. Before closing the <body> section of the
page you can add the google analytics snippet.

You'll need to restart GeoNetwork after the change to get it, due to xsl
caching.

Regards,
Jose García

On Wed, Feb 20, 2013 at 10:06 PM, Giuseppe Molinario
<g.molinario@anonymised.com>wrote:

Hi All,

How do I add a google analytics tracker code to a geonetwork app? The
homepage is created dynamically so I'm struggling to figure out where I
could put the code so it registers at least hits to my homepage.

Thanks

Giuseppe

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at
http://sourceforge.net/projects/geonetwork

--
*
GeoCat Bridge for ArcGIS allows instant publishing of data and metadata on
GeoServer and GeoNetwork. Visit http://geocat.net for details.
_________________________
Jose García
GeoCat bv
Veenderweg 13
6721 WD Bennekom
The Netherlands
http://GeoCat.net/&gt;

*