tajo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hyun...@apache.org
Subject tajo git commit: Update the event names for google analytics download tracking.
Date Mon, 09 Mar 2015 10:11:44 GMT
Repository: tajo
Updated Branches:
  refs/heads/master f9d2fdefe -> 69fd8d2a0


Update the event names for google analytics download tracking.


Project: http://git-wip-us.apache.org/repos/asf/tajo/repo
Commit: http://git-wip-us.apache.org/repos/asf/tajo/commit/69fd8d2a
Tree: http://git-wip-us.apache.org/repos/asf/tajo/tree/69fd8d2a
Diff: http://git-wip-us.apache.org/repos/asf/tajo/diff/69fd8d2a

Branch: refs/heads/master
Commit: 69fd8d2a08ce7ec0d69c4f98a338f979a13aafd1
Parents: f9d2fde
Author: Hyunsik Choi <hyunsik@apache.org>
Authored: Mon Mar 9 03:11:36 2015 -0700
Committer: Hyunsik Choi <hyunsik@apache.org>
Committed: Mon Mar 9 03:11:36 2015 -0700

----------------------------------------------------------------------
 tajo-project/src/site/site.xml | 32 ++++++++++++++++++--------------
 1 file changed, 18 insertions(+), 14 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tajo/blob/69fd8d2a/tajo-project/src/site/site.xml
----------------------------------------------------------------------
diff --git a/tajo-project/src/site/site.xml b/tajo-project/src/site/site.xml
index 65968c7..fd3bb6f 100644
--- a/tajo-project/src/site/site.xml
+++ b/tajo-project/src/site/site.xml
@@ -65,24 +65,28 @@ m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
 ga('create', 'UA-38152529-1', 'auto');
 ga('send', 'pageview');
 
-var dn_src_0_10_0 = document.getElementById('tajo-0.10.0-src');
-var dn_bin_0_10_0 = document.getElementById('tajo-0.10.0-bin');
-var dn_jdbc_0_10_0 = document.getElementById('tajo-jdbc-0.10.0');
-
-addListener(dn_src_0_10_0, 'click', function() {
-  ga('send', 'event', 'download', 'click', 'tajo-0.10.0-src');
-});
-addListener(dn_bin_0_10_0, 'click', function() {
-  ga('send', 'event', 'download', 'click', 'tajo-0.10.0-bin');
-});
-addListener(dn_jdbc_0_10_0, 'click', function() {
-  ga('send', 'event', 'download', 'click', 'tajo-jdbc-0.10.0');
-});
-
 function addListener(element, type, callback) {
  if (element.addEventListener) element.addEventListener(type, callback);
  else if (element.attachEvent) element.attachEvent('on' + type, callback);
 }
+
+function ga_event_load() {
+        var dn_src_0_10_0 = document.getElementById('tajo-0.10.0-src');
+        var dn_bin_0_10_0 = document.getElementById('tajo-0.10.0-bin');
+        var dn_jdbc_0_10_0 = document.getElementById('tajo-jdbc-0.10.0');
+
+        addListener(dn_src_0_10_0, 'click', function() {
+          ga('send', 'event', 'tajo-0.10.0-src', 'click', 'tajo-0.10.0-src');
+        });
+        addListener(dn_bin_0_10_0, 'click', function() {
+          ga('send', 'event', 'tajo-0.10.0-bin', 'click', 'tajo-0.10.0-bin');
+        });
+        addListener(dn_jdbc_0_10_0, 'click', function() {
+          ga('send', 'event', 'tajo-jdbc-0.10.0', 'click', 'tajo-jdbc-0.10.0');
+        });
+}
+
+window.onload = ga_event_load;
       </script>
       <style>
         a.externalLink[href^=http] {


Mime
View raw message