From 68c407d61a7c9eac14ab5da5f5c251db028af912 Mon Sep 17 00:00:00 2001 From: Marcus Whybrow Date: Fri, 15 Jun 2012 16:54:34 +0100 Subject: [PATCH] Added GA event tracking for links and buttons. --- index.html | 38 +++++++++++++++++++++++--------------- 1 file changed, 23 insertions(+), 15 deletions(-) diff --git a/index.html b/index.html index 54f6cf4..2bbea1b 100644 --- a/index.html +++ b/index.html @@ -28,7 +28,10 @@ var milestonePercentage = closedIssues / totalIssues * 100; var $div = $("
").addClass("milestone"); - var $link =$("").attr("href", "https://github.com/marcuswhybrow/minecraft-server-manager/issues?state=open&milestone=" + milestone.number).appendTo($div); + var $link =$("") + .attr("href", "https://github.com/marcuswhybrow/minecraft-server-manager/issues?state=open&milestone=" + milestone.number) + .addClass("ga-track") + .appendTo($div); $("

").text(milestone.title).appendTo($link); $("

").text(milestone.description).appendTo($div); var $progress = $("

").addClass("progress").appendTo($div); @@ -37,8 +40,13 @@ }); $(".milestones").slideDown(); - - $('.player').tooltip(); + }); + + $('.player').tooltip(); + + $('a.ga-track').live('click', function() { + var $this = $(this); + _gaq.push(['_trackEvent', 'External Link', $this.text(), $this.attr('href')]); }); }); @@ -62,8 +70,8 @@

A comprehensive start up script for Minecraft and Bukkit servers.

- +

Created by craftysaurus

@@ -101,7 +109,7 @@

World and server backups

-

Periodically create WorldEdit compatible snapshots and then restore regions in-game to protect against griefers. Or backup the entire server directory for complete protection.

+

Periodically create WorldEdit compatible snapshots and then restore regions in-game to protect against griefers. Or backup the entire server directory for complete protection.

@@ -141,7 +149,7 @@

Easy to get to grips with

-

As well as detailed documentation, and issue submissions, bash completion makes remembering what to type a thing of the past. Just hit tab!

+

As well as detailed documentation, and issue submissions, bash completion makes remembering what to type a thing of the past. Just hit tab!

@@ -159,12 +167,12 @@

Continuous Integration

-

Each version is checked against shunit2 unit tests by travis-ci.org.

+

Each version is checked against shunit2 unit tests by travis-ci.org.

Open Source

-

Built for and maintained by the community thanks to GitHub

+

Built for and maintained by the community thanks to GitHub

@@ -179,9 +187,9 @@