From cf884fb1c9b23fd871e3e35e55e9f77273edfe09 Mon Sep 17 00:00:00 2001 From: danielgrippi Date: Wed, 30 May 2012 14:56:02 -0700 Subject: [PATCH] finally fixed teh analytics helper [ci skip] --- app/helpers/analytics_helper.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/helpers/analytics_helper.rb b/app/helpers/analytics_helper.rb index ea7fa8b92..4e8a859f1 100644 --- a/app/helpers/analytics_helper.rb +++ b/app/helpers/analytics_helper.rb @@ -23,8 +23,8 @@ module AnalyticsHelper def include_chartbeat include_analytics "chartbeat" do |service_uid| javascript_tag do - <<-JS - var _sf_async_config = { uid: #{AppConfig[:mixpanel_uid]}, domain: '#{AppConfig[:pod_uri].host}' }; + <<-JS.html_safe + var _sf_async_config = { uid: "#{AppConfig[:mixpanel_uid]}", domain: "#{AppConfig[:pod_uri].host}" }; (function() { function loadChartbeat() { window._sf_endpt = (new Date()).getTime();