User Tools

Site Tools


en:user_advanced:google_analytics

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
en:user_advanced:google_analytics [2018/08/07 02:11] – [Adding and using new servlet params] kjdonen:user_advanced:google_analytics [2018/08/07 02:16] – [Adding and using new servlet params] kjdon
Line 67: Line 67:
 Now that this has been implemented, instead of hard coding the tracking id in the xslt file, you can specify it as an initParam to a servlet (therefore each servlet can have a different one if need be) Now that this has been implemented, instead of hard coding the tracking id in the xslt file, you can specify it as an initParam to a servlet (therefore each servlet can have a different one if need be)
  
 +In web/WEB-INF/servlets.xml, add an init-param like the following to the main library servlet (specifying of course, your actual google id):
 +<code>
 + <init-param>
 +   <param-name>google_tracking_id</param-name>
 +   <param-value>UA-xxx-1</param-value>
 + </init-param>
 +
 +</code>
 +
 +You will need to restart the server for this to take effect.
en/user_advanced/google_analytics.txt · Last modified: 2023/03/13 01:46 by 127.0.0.1