diff --git a/_config.yml b/_config.yml index 187d74e2a5..71779f6ce3 100644 --- a/_config.yml +++ b/_config.yml @@ -99,9 +99,12 @@ JB : # Set 'provider' to false to turn analytics off globally. # analytics : - provider : google - google : + provider : google_classic + google_classic : tracking_id : 'UA-123-12' + google_universal : + tracking_id : 'UA-123-12' + domain: 'github.com' getclicky : site_id : mixpanel : diff --git a/_includes/JB/analytics b/_includes/JB/analytics index 4b04ec9d90..94e7ca47d2 100644 --- a/_includes/JB/analytics +++ b/_includes/JB/analytics @@ -1,8 +1,10 @@ {% if site.safe and site.JB.analytics.provider and page.JB.analytics != false %} {% case site.JB.analytics.provider %} -{% when "google" %} - {% include JB/analytics-providers/google %} +{% when "google_classic" %} + {% include JB/analytics-providers/google-classic %} +{% when "google_universal" %} + {% include JB/analytics-providers/google-universal %} {% when "getclicky" %} {% include JB/analytics-providers/getclicky %} {% when "mixpanel" %} diff --git a/_includes/JB/analytics-providers/google b/_includes/JB/analytics-providers/google-classic similarity index 83% rename from _includes/JB/analytics-providers/google rename to _includes/JB/analytics-providers/google-classic index 9014866a40..af099078a5 100644 --- a/_includes/JB/analytics-providers/google +++ b/_includes/JB/analytics-providers/google-classic @@ -1,6 +1,6 @@ \ No newline at end of file