summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Wenk <andywenk@apache.org>2013-12-12 00:01:02 +0100
committerAndy Wenk <andywenk@apache.org>2013-12-12 00:01:02 +0100
commit850eafbddc0b7c5600dc6f642c33e313f2b57279 (patch)
treeeca9d6ac5ce77eb333b1f7135b52d1b492c29bd4
parent9c641f1677f9d9cf27f3c76af803636d980c0929 (diff)
downloadcouchdb-ga-couchdbdocs.tar.gz
added google analytics code to docsga-couchdbdocs
-rw-r--r--share/doc/static/ga-couchdbdocs.js6
-rw-r--r--share/doc/templates/searchbox.html1
2 files changed, 7 insertions, 0 deletions
diff --git a/share/doc/static/ga-couchdbdocs.js b/share/doc/static/ga-couchdbdocs.js
new file mode 100644
index 000000000..6276f60e3
--- /dev/null
+++ b/share/doc/static/ga-couchdbdocs.js
@@ -0,0 +1,6 @@
+(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-658988-6', 'auto', {'name': 'couchdbdocs'});
+ga('couchdbdocs.send', 'pageview'); \ No newline at end of file
diff --git a/share/doc/templates/searchbox.html b/share/doc/templates/searchbox.html
index fa12a7f03..7926b15d2 100644
--- a/share/doc/templates/searchbox.html
+++ b/share/doc/templates/searchbox.html
@@ -29,3 +29,4 @@ specific language governing permissions and limitations under the License.
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
+<script type="text/javascript" src="{{ pathto('_static/ga-couchdbdocs.js', 1) }}"></script>