diff options
| -rw-r--r-- | _includes/footer.html | 4 | ||||
| -rw-r--r-- | _includes/header.html | 8 | 
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>  | 
