From c757d6eef16041395ec4925df008247d1bcb0805 Mon Sep 17 00:00:00 2001 From: ThemeZ Date: Sun, 12 May 2013 09:39:50 +0800 Subject: [PATCH 1/4] add baidu in analystics provider --- _config.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/_config.yml b/_config.yml index 4b87333e0b..01966dd50d 100644 --- a/_config.yml +++ b/_config.yml @@ -106,6 +106,8 @@ JB : site_id : mixpanel : token : '_MIXPANEL_TOKEN_' + baidu : + token : '_BAIDU_TOKEN_' # Settings for sharing helper. # Sharing is for things like tweet, plusone, like, reddit buttons etc. From cb222541b6814b5b5197aca601d918527e43c5d8 Mon Sep 17 00:00:00 2001 From: ThemeZ Date: Sun, 12 May 2013 09:40:53 +0800 Subject: [PATCH 2/4] add baidu analystic script --- _includes/JB/analytics-providers/baidu | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 _includes/JB/analytics-providers/baidu diff --git a/_includes/JB/analytics-providers/baidu b/_includes/JB/analytics-providers/baidu new file mode 100644 index 0000000000..c579eaf5cc --- /dev/null +++ b/_includes/JB/analytics-providers/baidu @@ -0,0 +1,4 @@ + From 48b75b2199d6174aee15e2f9bdd64c122f073698 Mon Sep 17 00:00:00 2001 From: ThemeZ Date: Sun, 12 May 2013 09:41:46 +0800 Subject: [PATCH 3/4] add baidu in analystics --- _includes/JB/analytics | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/_includes/JB/analytics b/_includes/JB/analytics index 4b04ec9d90..9d66219548 100644 --- a/_includes/JB/analytics +++ b/_includes/JB/analytics @@ -7,8 +7,10 @@ {% include JB/analytics-providers/getclicky %} {% when "mixpanel" %} {% include JB/analytics-providers/mixpanel %} +{% when "baidu" %} + {% include JB/analytics-providers/baidu %} {% when "custom" %} {% include custom/analytics %} {% endcase %} -{% endif %} \ No newline at end of file +{% endif %} From e72aa2921a541cd7b0515b6e46e521c656ef7162 Mon Sep 17 00:00:00 2001 From: ThemeZ Date: Sun, 12 May 2013 09:53:11 +0800 Subject: [PATCH 4/4] add tip for analytics --- _config.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/_config.yml b/_config.yml index 01966dd50d..965ad87305 100644 --- a/_config.yml +++ b/_config.yml @@ -95,6 +95,7 @@ JB : colorscheme: light # Settings for analytics helper + # Set 'site.safe' to true to enable analytics plugin # Set 'provider' to the analytics provider you want to use. # Set 'provider' to false to turn analytics off globally. #