From 9586dc48162e644431d6045671815eda688eb5cb Mon Sep 17 00:00:00 2001 From: Scott Wallace Date: Thu, 15 May 2014 21:00:42 +0100 Subject: [PATCH] Added some outbound link tracking. --- index.html | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index 5bbf298..fbe6058 100644 --- a/index.html +++ b/index.html @@ -118,6 +118,12 @@ ga('create', 'UA-51053608-1', 'lillamacarons.com'); ga('send', 'pageview'); + + var trackOutboundLink = function(url) { + ga('send', 'event', 'outbound', 'click', url, {'hitCallback': function () { + document.location = url; + } + });