Reference
Google Analytics Functions
Below is a list of common Google Analytics functions. Many of these are explained at various points in this Short Cut:
urchinTracker(string)
This is the main Google Analytics function. It collects visitor information, sets the tracking cookies, and sends the data to Google Analytics. More information about
urchinTracker()
can be found in "About urchinTracker()," earlier in this Short Cut.- __
utmLinker
(url
) The
__utmLinker()
function is used in cross-domain tracking. This function appends the Google Analytics tracking cookies to the end of the URL passed to the function and then forwards the browser to this new URL. See "Tracking Across Multiple Domains" in the "Common Web Site Configurations" section for usage.- __
utmLinkPost
(url
) Similar to the
__utmLinker()
function.__utmLinkPost()
is used to transfer Google Analytics tracking cookies from one domain to another by adding the tracking cookies to the value in the form action. See "Tracking Across Multiple Domains" in the "Common Web Site Configurations" section for usage._utmSetTrans()
This function sends e-commerce data to the Google Analytics sever. First it examines the HTML and looks for the hidden form field. Once found it parses the data and sends it to Google Analytics. Each transaction line and item line in the hidden form field is sent to Google Analytics as a request for an invisible GIF file. See the section "E-Commerce Tracking" for more information.
_uGC(string, start-pattern, end-pattern) ...
Get Google Analytics now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.