You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tajo.apache.org by ji...@apache.org on 2015/03/11 02:22:03 UTC

[07/12] tajo git commit: Updated google analytics tracking js.

Updated google analytics tracking js.


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

Branch: refs/heads/index_support
Commit: f9d2fdefe87ad7145f49f287f59e4e18c5a86183
Parents: 14a7f82
Author: Hyunsik Choi <hy...@apache.org>
Authored: Mon Mar 9 02:11:31 2015 -0700
Committer: Hyunsik Choi <hy...@apache.org>
Committed: Mon Mar 9 02:11:31 2015 -0700

----------------------------------------------------------------------
 tajo-project/src/site/markdown/downloads.md |  8 ++---
 tajo-project/src/site/site.xml              | 37 +++++++++++++++++-------
 2 files changed, 30 insertions(+), 15 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tajo/blob/f9d2fdef/tajo-project/src/site/markdown/downloads.md
----------------------------------------------------------------------
diff --git a/tajo-project/src/site/markdown/downloads.md b/tajo-project/src/site/markdown/downloads.md
index d79a3b9..44d370b 100644
--- a/tajo-project/src/site/markdown/downloads.md
+++ b/tajo-project/src/site/markdown/downloads.md
@@ -23,9 +23,9 @@
  * [Announcement] (releases/0.10.0/announcement.html)
  * [Release Notes] (releases/0.10.0/relnotes.html)
  * [User Documentation] (http://tajo.apache.org/docs/0.10.0/index.html)
- * Source: [tajo-0.10.0-src.tar.gz](http://apache.org/dyn/closer.cgi/tajo/tajo-0.10.0/tajo-0.10.0-src.tar.gz) ([MD5](http://www.apache.org/dist/tajo/tajo-0.10.0/tajo-0.10.0-src.tar.gz.md5)) ([SHA](http://www.apache.org/dist/tajo/tajo-0.10.0/tajo-0.10.0-src.tar.gz.sha)) ([SIGN](http://www.apache.org/dist/tajo/tajo-0.10.0/tajo-0.10.0-src.tar.gz.asc)) ([KEYS](http://www.apache.org/dist/tajo/KEYS))
- * Binary Tarball: [tajo-0.10.0.tar.gz] (http://apache.org/dyn/closer.cgi/tajo/tajo-0.10.0/tajo-0.10.0.tar.gz) ([MD5](http://www.apache.org/dist/tajo/tajo-0.10.0/tajo-0.10.0.tar.gz.md5)) ([SHA](http://www.apache.org/dist/tajo/tajo-0.10.0/tajo-0.10.0.tar.gz.sha)) ([SIGN](http://www.apache.org/dist/tajo/tajo-0.10.0/tajo-0.10.0.tar.gz.asc)) ([KEYS](http://www.apache.org/dist/tajo/KEYS))
- * JDBC Driver: [tajo-jdbc-0.10.0.jar] (http://apache.org/dyn/closer.cgi/tajo/tajo-0.10.0/tajo-jdbc-0.10.0.jar) ([MD5](http://www.apache.org/dist/tajo/tajo-0.10.0/tajo-jdbc-0.10.0.jar.md5)) ([SHA](http://www.apache.org/dist/tajo/tajo-0.10.0/tajo-jdbc-0.10.0.jar.sha)) ([SIGN](http://www.apache.org/dist/tajo/tajo-0.10.0/tajo-jdbc-0.10.0.jar.asc)) ([KEYS](http://www.apache.org/dist/tajo/KEYS))
+ * Source: <a href='http://apache.org/dyn/closer.cgi/tajo/tajo-0.10.0/tajo-0.10.0-src.tar.gz' id='tajo-0.10.0-src'>tajo-0.10.0-src.tar.gz</a> ([MD5](http://www.apache.org/dist/tajo/tajo-0.10.0/tajo-0.10.0-src.tar.gz.md5)) ([SHA](http://www.apache.org/dist/tajo/tajo-0.10.0/tajo-0.10.0-src.tar.gz.sha)) ([SIGN](http://www.apache.org/dist/tajo/tajo-0.10.0/tajo-0.10.0-src.tar.gz.asc)) ([KEYS](http://www.apache.org/dist/tajo/KEYS))
+ * Binary Tarball: <a href='http://apache.org/dyn/closer.cgi/tajo/tajo-0.10.0/tajo-0.10.0.tar.gz' id='tajo-0.10.0-bin'>tajo-0.10.0.tar.gz</a> ([MD5](http://www.apache.org/dist/tajo/tajo-0.10.0/tajo-0.10.0.tar.gz.md5)) ([SHA](http://www.apache.org/dist/tajo/tajo-0.10.0/tajo-0.10.0.tar.gz.sha)) ([SIGN](http://www.apache.org/dist/tajo/tajo-0.10.0/tajo-0.10.0.tar.gz.asc)) ([KEYS](http://www.apache.org/dist/tajo/KEYS))
+ * JDBC Driver: <a href='http://apache.org/dyn/closer.cgi/tajo/tajo-0.10.0/tajo-jdbc-0.10.0.jar' id='tajo-jdbc-0.10.0'>tajo-jdbc-0.10.0.jar</a> ([MD5](http://www.apache.org/dist/tajo/tajo-0.10.0/tajo-jdbc-0.10.0.jar.md5)) ([SHA](http://www.apache.org/dist/tajo/tajo-0.10.0/tajo-jdbc-0.10.0.jar.sha)) ([SIGN](http://www.apache.org/dist/tajo/tajo-0.10.0/tajo-jdbc-0.10.0.jar.asc)) ([KEYS](http://www.apache.org/dist/tajo/KEYS))
 
 ## Previous Releases
 ### Release 0.9.0 (Oct 21, 2014)
@@ -106,4 +106,4 @@ or
 
 ```
 sha1sum -c tajo-0.x.0.tar.gz.sha1
-```
\ No newline at end of file
+```

http://git-wip-us.apache.org/repos/asf/tajo/blob/f9d2fdef/tajo-project/src/site/site.xml
----------------------------------------------------------------------
diff --git a/tajo-project/src/site/site.xml b/tajo-project/src/site/site.xml
index aec60ac..65968c7 100644
--- a/tajo-project/src/site/site.xml
+++ b/tajo-project/src/site/site.xml
@@ -57,17 +57,32 @@
     <head>
       <meta name="description" content="Apache Tajo,SQL-on-Hadoop,big data warehouse system on Hadoop,relational and distributed query engine" />
       <script type="text/javascript">
-
-        var _gaq = _gaq || [];
-        _gaq.push(['_setAccount', 'UA-38152529-1']);
-        _gaq.push(['_trackPageview']);
-
-        (function() {
-        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
-        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
-        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
-        })();
-
+(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
+(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
+m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
+})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
+
+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);
+}
       </script>
       <style>
         a.externalLink[href^=http] {