stk:analytics.google(template)

Use this template for generating the Google Analytics tracking script on your web site. The web property id and analytics type (classic or universal) are set in the site's site.xml configuration file.

element()?stk:analytics.google

Examples

Site configuration

Input

<parameter path="/" name="google-analytics-web-property-id">AB-123456789</parameter>

For outputting the script

Input

<!-- This is outputted if set in config -->
<xsl:call-template name="stk:analytics.google"/>