beautypg.com

Chapter 4 analyzing your data – Google Search Appliance Analytics Integration Guide User Manual

Page 16

background image

16



File

Method/Template name

Changes made

Implications

ga_template.xsl

analytics_custom_var

Added an xsl template
that can be put in
various parts of the
stylesheet. The
template needs the
index, name, value, and
scope parameters.

When the template is
called, this code will
send custom variable
data to GA.

ga_template.xsl

analytics_event_tracki

ng

Added an xsl template
that can be put in
various parts of the
stylesheet. The
template needs the
category, action, label,
and value parameters.

When the template is
called, this code will
send event tracking
data to GA.

ga_template.xsl

test="$render_dynamic_

navigation = '1'">

Added a call
clicklog_GA.js file.
Change this to point to
where your file is
hosted.

Allows for ASR and GA
advanced integration.

ga_template.xsl

my_page_header

Added call to

analytics

template.

Loads analytics async
code.

ga_template.xsl

no_RES

Added a call to
analytics_custom_

var

that logs Zero

Results.

This is a sample of
custom variable
template use.

clicklog_GA.js

cl_analytics_clk

Added a switch
statement that sends
event tracking data to
GA for each click type
usually recorded in
ASR.

This code uses the
same data used by
ASR to log the data in
GA.

You

can download copies of the clicklog_GA.js, ga_template.xsl, and snippets.xsl files from

https://gsa-

admin-toolkit.googlecode.com/files/GSA-GA.zip

.