finally fixed teh analytics helper [ci skip]
This commit is contained in:
parent
7e544167f3
commit
cf884fb1c9
1 changed files with 2 additions and 2 deletions
|
|
@ -23,8 +23,8 @@ module AnalyticsHelper
|
||||||
def include_chartbeat
|
def include_chartbeat
|
||||||
include_analytics "chartbeat" do |service_uid|
|
include_analytics "chartbeat" do |service_uid|
|
||||||
javascript_tag do
|
javascript_tag do
|
||||||
<<-JS
|
<<-JS.html_safe
|
||||||
var _sf_async_config = { uid: #{AppConfig[:mixpanel_uid]}, domain: '#{AppConfig[:pod_uri].host}' };
|
var _sf_async_config = { uid: "#{AppConfig[:mixpanel_uid]}", domain: "#{AppConfig[:pod_uri].host}" };
|
||||||
(function() {
|
(function() {
|
||||||
function loadChartbeat() {
|
function loadChartbeat() {
|
||||||
window._sf_endpt = (new Date()).getTime();
|
window._sf_endpt = (new Date()).getTime();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue