Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 3D4BA20049C for ; Fri, 11 Aug 2017 12:11:42 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 3BF4916D0D7; Fri, 11 Aug 2017 10:11:42 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 8B7E616D0D5 for ; Fri, 11 Aug 2017 12:11:41 +0200 (CEST) Received: (qmail 11129 invoked by uid 500); 11 Aug 2017 10:11:40 -0000 Mailing-List: contact commits-help@bookkeeper.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: bookkeeper-dev@bookkeeper.apache.org Delivered-To: mailing list commits@bookkeeper.apache.org Received: (qmail 11114 invoked by uid 99); 11 Aug 2017 10:11:40 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Aug 2017 10:11:40 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id 78B5781270; Fri, 11 Aug 2017 10:11:37 +0000 (UTC) Date: Fri, 11 Aug 2017 10:11:47 +0000 To: "commits@bookkeeper.apache.org" Subject: [bookkeeper] 10/10: ISSUE #432: Add "Google Analytics" to the website MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit From: sijie@apache.org Reply-To: "commits@bookkeeper.apache.org" In-Reply-To: <150244629712.16261.13174649489097510329@gitbox.apache.org> References: <150244629712.16261.13174649489097510329@gitbox.apache.org> X-Git-Host: gitbox.apache.org X-Git-Repo: bookkeeper X-Git-Refname: refs/heads/branch-4.5 X-Git-Reftype: branch X-Git-Rev: 6028fe25b2bd41ad1c2fc5ba81bc109cd9de15a2 X-Git-NotificationType: diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated Message-Id: <20170811101138.78B5781270@gitbox.apache.org> archived-at: Fri, 11 Aug 2017 10:11:42 -0000 This is an automated email from the ASF dual-hosted git repository. sijie pushed a commit to branch branch-4.5 in repository https://gitbox.apache.org/repos/asf/bookkeeper.git commit 6028fe25b2bd41ad1c2fc5ba81bc109cd9de15a2 Author: Sijie Guo AuthorDate: Thu Aug 10 14:22:05 2017 -0700 ISSUE #432: Add "Google Analytics" to the website Descriptions of the changes in this PR: Add "google analytics" script to the website for tracking the documentation traffic. We can learn the pattern and improve documentation. The google account for analytics is managed by bookkeeper pmc. Author: Sijie Guo Reviewers: Matteo Merli This closes #433 from sijie/google_analytics, closes #432 --- site/Makefile | 2 +- site/_includes/google-analytics.html | 26 ++++++++++++++++++++++++++ site/_layouts/default.html | 3 +++ 3 files changed, 30 insertions(+), 1 deletion(-) diff --git a/site/Makefile b/site/Makefile index 3719f81..7108380 100644 --- a/site/Makefile +++ b/site/Makefile @@ -23,7 +23,7 @@ build: clean --config _config.yml apache: clean - ${JEKYLL} build \ + JEKYLL_ENV=production ${JEKYLL} build \ --config _config.yml,_config.apache.yml javadoc: diff --git a/site/_includes/google-analytics.html b/site/_includes/google-analytics.html new file mode 100644 index 0000000..d081572 --- /dev/null +++ b/site/_includes/google-analytics.html @@ -0,0 +1,26 @@ + + diff --git a/site/_layouts/default.html b/site/_layouts/default.html index 6906d6f..5e54466 100644 --- a/site/_layouts/default.html +++ b/site/_layouts/default.html @@ -14,4 +14,7 @@ {% include javascript.html %} + {% if jekyll.environment == "production" %} + {% include google-analytics.html %} + {% endif %} -- To stop receiving notification emails like this one, please contact "commits@bookkeeper.apache.org" .