diff --git a/_config.yml b/_config.yml index 4b87333e0b..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. # @@ -106,6 +107,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. 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 %} 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 @@ +