From f4110cb83acdc2ab09b379ca57207e52b06efa63 Mon Sep 17 00:00:00 2001 From: Arseny Kapoulkine Date: Tue, 11 Nov 2014 19:59:33 +0100 Subject: Add GA tracking for downloads --- _includes/footer.html | 4 ++++ _includes/header.html | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/_includes/footer.html b/_includes/footer.html index ecffab0..f11b3e4 100644 --- a/_includes/footer.html +++ b/_includes/footer.html @@ -32,6 +32,10 @@ ga('create', 'UA-954596-3', 'auto'); ga('send', 'pageview'); + + function trackDownload(name) { + ga('send', 'event', 'download', 'click', name); + } diff --git a/_includes/header.html b/_includes/header.html index e1d34e1..267cf95 100644 --- a/_includes/header.html +++ b/_includes/header.html @@ -27,9 +27,9 @@ Downloads: -- cgit v1.2.3