From 386155ea39248a05720eeb741765682422ef995e Mon Sep 17 00:00:00 2001 From: Joseph Hall Date: Sat, 17 Oct 2015 16:21:03 -0400 Subject: [PATCH] Fixes PR #158. Add baidu analytics provider. I didn't create an account to test, but this is isolated code and the risk to break existing analytics modules is low. --- _config.yml | 2 ++ _includes/JB/analytics | 2 ++ _includes/JB/analytics-providers/baidu | 4 ++++ 3 files changed, 8 insertions(+) create mode 100644 _includes/JB/analytics-providers/baidu diff --git a/_config.yml b/_config.yml index 252c222e6f..060e8cbcca 100644 --- a/_config.yml +++ b/_config.yml @@ -111,6 +111,8 @@ JB : site_id : mixpanel : token : '_MIXPANEL_TOKEN_' + baidu : + token : '_BAIDU_TOKEN_' piwik : baseURL : 'myserver.tld/piwik' # Piwik installation address (without protocol) idsite : '1' # the id of the site on Piwik diff --git a/_includes/JB/analytics b/_includes/JB/analytics index 76c1889ae2..762bbce717 100644 --- a/_includes/JB/analytics +++ b/_includes/JB/analytics @@ -11,6 +11,8 @@ {% include JB/analytics-providers/google-universal %} {% when "getclicky" %} {% include JB/analytics-providers/getclicky %} +{% when "baidu" %} + {% include JB/analytics-providers/baidu %} {% when "mixpanel" %} {% include JB/analytics-providers/mixpanel %} {% when "piwik" %} diff --git a/_includes/JB/analytics-providers/baidu b/_includes/JB/analytics-providers/baidu new file mode 100644 index 0000000000..d5e76eec63 --- /dev/null +++ b/_includes/JB/analytics-providers/baidu @@ -0,0 +1,4 @@ + \ No newline at end of file