I think it's better to add tracking number in project's admin panel on RTD . There is special field about:
Analytics code: Google Analytics Tracking ID (ex. UA-22345342-1). This may slow down your page loads. -- ,,,^..^,,, On Thu, Dec 12, 2013 at 3:24 AM, Alexander Shorin <[email protected]> wrote: > Do we ship GA tracker with CouchDB releases?(: > -- > ,,,^..^,,, > > > On Thu, Dec 12, 2013 at 3:01 AM, <[email protected]> wrote: >> Updated Branches: >> refs/heads/ga-couchdbdocs [created] 850eafbdd >> >> >> added google analytics code to docs >> >> >> Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo >> Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/850eafbd >> Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/850eafbd >> Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/850eafbd >> >> Branch: refs/heads/ga-couchdbdocs >> Commit: 850eafbddc0b7c5600dc6f642c33e313f2b57279 >> Parents: 9c641f1 >> Author: Andy Wenk <[email protected]> >> Authored: Thu Dec 12 00:01:02 2013 +0100 >> Committer: Andy Wenk <[email protected]> >> Committed: Thu Dec 12 00:01:02 2013 +0100 >> >> ---------------------------------------------------------------------- >> share/doc/static/ga-couchdbdocs.js | 6 ++++++ >> share/doc/templates/searchbox.html | 1 + >> 2 files changed, 7 insertions(+) >> ---------------------------------------------------------------------- >> >> >> http://git-wip-us.apache.org/repos/asf/couchdb/blob/850eafbd/share/doc/static/ga-couchdbdocs.js >> ---------------------------------------------------------------------- >> diff --git a/share/doc/static/ga-couchdbdocs.js >> b/share/doc/static/ga-couchdbdocs.js >> new file mode 100644 >> index 0000000..6276f60 >> --- /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 >> >> http://git-wip-us.apache.org/repos/asf/couchdb/blob/850eafbd/share/doc/templates/searchbox.html >> ---------------------------------------------------------------------- >> diff --git a/share/doc/templates/searchbox.html >> b/share/doc/templates/searchbox.html >> index fa12a7f..7926b15 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> >>
