summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArseny Kapoulkine <arseny.kapoulkine@gmail.com>2014-11-16 00:34:46 +0100
committerArseny Kapoulkine <arseny.kapoulkine@gmail.com>2014-11-16 00:34:46 +0100
commit18fd3625a4fcb91b4e05a4600465c00db1d830a2 (patch)
tree45964d95e7985945e25ddac9d2c0a24dc995832c
parentf4110cb83acdc2ab09b379ca57207e52b06efa63 (diff)
Update GA tracking
-rw-r--r--_includes/footer.html4
-rw-r--r--_includes/header.html8
2 files changed, 6 insertions, 6 deletions
diff --git a/_includes/footer.html b/_includes/footer.html
index f11b3e4..27d6d45 100644
--- a/_includes/footer.html
+++ b/_includes/footer.html
@@ -33,8 +33,8 @@
ga('create', 'UA-954596-3', 'auto');
ga('send', 'pageview');
- function trackDownload(name) {
- ga('send', 'event', 'download', 'click', name);
+ function trackLink(type, name) {
+ ga('send', 'event', type, name);
}
</script>
</body>
diff --git a/_includes/header.html b/_includes/header.html
index 267cf95..71871d8 100644
--- a/_includes/header.html
+++ b/_includes/header.html
@@ -27,17 +27,17 @@
Downloads:
<ul>
- <li><a href="http://github.com/zeux/pugixml/releases/download/v{{site.version}}/pugixml-{{site.version}}.zip" onclick="trackDownload('pugixml-{{site.version}}.zip')">pugixml-{{site.version}}.zip</a><br/>
+ <li><a href="http://github.com/zeux/pugixml/releases/download/v{{site.version}}/pugixml-{{site.version}}.zip" onclick="trackLink('download', 'pugixml-{{site.version}}.zip')">pugixml-{{site.version}}.zip</a><br/>
<small>398 Kb, Windows line endings</small></li>
- <li><a href="http://github.com/zeux/pugixml/releases/download/v{{site.version}}/pugixml-{{site.version}}.tar.gz" onclick="trackDownload('pugixml-{{site.version}}.tar.gz')">pugixml-{{site.version}}.tar.gz</a><br/>
+ <li><a href="http://github.com/zeux/pugixml/releases/download/v{{site.version}}/pugixml-{{site.version}}.tar.gz" onclick="trackLink('download', 'pugixml-{{site.version}}.tar.gz')">pugixml-{{site.version}}.tar.gz</a><br/>
<small>369 Kb, Unix line endings</small></li>
</ul>
Documentation:
<ul>
- <li><a href="http://cdn.rawgit.com/zeux/pugixml/v{{site.version}}/docs/quickstart.html">Quick-start guide</a><br/>
+ <li><a href="http://cdn.rawgit.com/zeux/pugixml/v{{site.version}}/docs/quickstart.html" onclick="trackLink('documentation', 'quickstart')">Quick-start guide</a><br/>
<small>Read this to start using the library</small></li>
- <li><a href="http://cdn.rawgit.com/zeux/pugixml/v{{site.version}}/docs/manual.html">Complete reference manual</a><br/>
+ <li><a href="http://cdn.rawgit.com/zeux/pugixml/v{{site.version}}/docs/manual.html" onclick="trackLink('documentation', 'manual')">Complete reference manual</a><br/>
<small>Read this for full library reference</small></li>
<li><a href="/license.html">License</a></li>
</ul>