From af8839037cb42f6fddf75bda7e89e4adb59d3891 Mon Sep 17 00:00:00 2001 From: Abhijeet Kumar Date: Tue, 28 Feb 2012 23:22:53 -0800 Subject: [PATCH] Adding Mixpanel as analytics provider --- _config.yml | 5 ++++- _includes/JB/analytics | 2 ++ _includes/JB/analytics-providers/mixpanel | 11 +++++++++++ 3 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 _includes/JB/analytics-providers/mixpanel diff --git a/_config.yml b/_config.yml index 722b38e..1def3ed 100644 --- a/_config.yml +++ b/_config.yml @@ -97,11 +97,14 @@ JB : # Set 'provider' to false to turn analytics off globally. # analytics : - provider : google + provider : mixpanel google : tracking_id : 'UA-123-12' getclicky : site_id : + mixpanel : + token : '_MIXPANEL_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 9280e8d..4b04ec9 100644 --- a/_includes/JB/analytics +++ b/_includes/JB/analytics @@ -5,6 +5,8 @@ {% include JB/analytics-providers/google %} {% when "getclicky" %} {% include JB/analytics-providers/getclicky %} +{% when "mixpanel" %} + {% include JB/analytics-providers/mixpanel %} {% when "custom" %} {% include custom/analytics %} {% endcase %} diff --git a/_includes/JB/analytics-providers/mixpanel b/_includes/JB/analytics-providers/mixpanel new file mode 100644 index 0000000..4406eb0 --- /dev/null +++ b/_includes/JB/analytics-providers/mixpanel @@ -0,0 +1,11 @@ + \ No newline at end of file