Merge pull request #1863 from ecuk/analytics

Google Universal Analytics
This commit is contained in:
Robin Ward
2014-01-27 12:33:17 -08:00
6 changed files with 35 additions and 2 deletions

View File

@@ -1,4 +1,10 @@
module CommonHelper
def render_google_universal_analytics_code
if Rails.env == "production" && SiteSetting.ga_universal_tracking_code.present?
render partial: "common/google_universal_analytics"
end
end
def render_google_analytics_code
if Rails.env == "production" && SiteSetting.ga_tracking_code.present?
render partial: "common/google_analytics"