From d3c5a0fbbd1a9082a7ff16f3cb0090eda678f6e8 Mon Sep 17 00:00:00 2001 From: Ian Gulliver Date: Sun, 8 Jun 2014 18:22:46 -0700 Subject: [PATCH] Expand analytics integration --- index.html | 33 ++++++++++++++++++++++----------- overview.html | 33 ++++++++++++++++++++++----------- reference.html | 34 ++++++++++++++++++++++------------ tutorial.html | 33 ++++++++++++++++++++++----------- 4 files changed, 88 insertions(+), 45 deletions(-) diff --git a/index.html b/index.html index 72572ee..5ae7c02 100644 --- a/index.html +++ b/index.html @@ -15,9 +15,9 @@

Client/server publish/subscribe, presence and key/value storage for AppEngine

@@ -58,15 +58,26 @@ - +ga('create', 'UA-37845853-2', 'auto'); +ga('require', 'displayfeatures'); +ga('send', 'pageview'); + +var trackOutboundLink = function(url) { + ga('send', 'event', 'outbound', 'click', url, { + 'hitCallback': function () { + document.location = url; + } + }); + return false; +} + + diff --git a/overview.html b/overview.html index 4f0a21a..61e9c14 100644 --- a/overview.html +++ b/overview.html @@ -15,9 +15,9 @@

Client/server publish/subscribe, presence and key/value storage for AppEngine

@@ -35,15 +35,26 @@ - +ga('create', 'UA-37845853-2', 'auto'); +ga('require', 'displayfeatures'); +ga('send', 'pageview'); + +var trackOutboundLink = function(url) { + ga('send', 'event', 'outbound', 'click', url, { + 'hitCallback': function () { + document.location = url; + } + }); + return false; +} + + diff --git a/reference.html b/reference.html index c9f2413..ec92614 100644 --- a/reference.html +++ b/reference.html @@ -15,9 +15,9 @@

Client/server publish/subscribe, presence and key/value storage for AppEngine

@@ -626,16 +626,26 @@ your application code.

- +ga('create', 'UA-37845853-2', 'auto'); +ga('require', 'displayfeatures'); +ga('send', 'pageview'); + +var trackOutboundLink = function(url) { + ga('send', 'event', 'outbound', 'click', url, { + 'hitCallback': function () { + document.location = url; + } + }); + return false; +} + + diff --git a/tutorial.html b/tutorial.html index 75801d3..d66ae96 100644 --- a/tutorial.html +++ b/tutorial.html @@ -15,9 +15,9 @@

Client/server publish/subscribe, presence and key/value storage for AppEngine

@@ -127,15 +127,26 @@ cosmo.pin('testsubject', 'browser is alive!'); - +ga('create', 'UA-37845853-2', 'auto'); +ga('require', 'displayfeatures'); +ga('send', 'pageview'); + +var trackOutboundLink = function(url) { + ga('send', 'event', 'outbound', 'click', url, { + 'hitCallback': function () { + document.location = url; + } + }); + return false; +} + +