Repository: incubator-guacamole-website Updated Branches: refs/heads/master 88b55745c -> d5a14b476
Track download statistics using Google Analytics. Project: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-website/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-website/commit/81564e16 Tree: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-website/tree/81564e16 Diff: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-website/diff/81564e16 Branch: refs/heads/master Commit: 81564e1693ca76e77dfe339ee3775b278e90fc37 Parents: 88b5574 Author: Michael Jumper <[email protected]> Authored: Mon Dec 19 23:15:05 2016 -0800 Committer: Michael Jumper <[email protected]> Committed: Mon Dec 19 23:15:05 2016 -0800 ---------------------------------------------------------------------- _includes/download-list.html | 8 +++++++- _includes/legacy-download-list.html | 16 ++++++++++++++++ _layouts/legacy-release.html | 6 +++--- 3 files changed, 26 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-guacamole-website/blob/81564e16/_includes/download-list.html ---------------------------------------------------------------------- diff --git a/_includes/download-list.html b/_includes/download-list.html index 4dc0764..fd286bb 100644 --- a/_includes/download-list.html +++ b/_includes/download-list.html @@ -4,7 +4,13 @@ <tr> {% assign mirror = include.artifact-root | append: include.path %} {% assign dist = include.checksum-root | append: include.path %} - <td><a href="{{ mirror | append: file }}">{{ file | split: "/" | last }}</a></td> + <td><a href="{{ mirror | append: file }}" + onclick="ga('send', 'event', { + eventCategory : 'Download', + eventAction : 'click', + eventLabel : '{{ file }}', + transport : 'beacon' + })">{{ file | split: "/" | last }}</a></td> <td>[ <a href="{{ dist | append: file }}.md5">MD5</a> ]</td> <td>[ <a href="{{ dist | append: file }}.sha">SHA</a> ]</td> <td>[ <a href="{{ dist | append: file }}.asc">PGP</a> ]</td> http://git-wip-us.apache.org/repos/asf/incubator-guacamole-website/blob/81564e16/_includes/legacy-download-list.html ---------------------------------------------------------------------- diff --git a/_includes/legacy-download-list.html b/_includes/legacy-download-list.html new file mode 100644 index 0000000..bf46438 --- /dev/null +++ b/_includes/legacy-download-list.html @@ -0,0 +1,16 @@ +{% if include.entries != empty %} + {% if include.title %} + <h2>{{ include.title }}</h2> + {% endif %} + <ul> + {% for entry in include.entries %} + <li><a href="{{ entry[1] | prepend: site.baseurl }}" + onclick="ga('send', 'event', { + eventCategory : 'Download', + eventAction : 'click', + eventLabel : '{{ entry[0] }}', + transport : 'beacon' + })">{{ entry[0] }}</a></li> + {% endfor %} + </ul> +{% endif %} http://git-wip-us.apache.org/repos/asf/incubator-guacamole-website/blob/81564e16/_layouts/legacy-release.html ---------------------------------------------------------------------- diff --git a/_layouts/legacy-release.html b/_layouts/legacy-release.html index a0b2bcd..4899371 100644 --- a/_layouts/legacy-release.html +++ b/_layouts/legacy-release.html @@ -13,17 +13,17 @@ permalink: /release/release-notes-:title <div id="links"> <!-- Compatible extensions --> - {% include link-list.html + {% include legacy-download-list.html title="Compatible extensions" entries=page.extensions %} <!-- Binary .war --> - {% include link-list.html + {% include legacy-download-list.html title="Web application (.war)" entries=page.binary-war %} <!-- Source archives --> - {% include link-list.html + {% include legacy-download-list.html title="Source" entries=page.source-archives %}
