javascript:
  analytics.timeOnPage.baseUrl = #{url_for(controller: 'analytics_plugin/time_on_page').to_json}
  analytics.timeOnPage.updateInterval = #{AnalyticsPlugin::TimeOnPageUpdateIntervalMs.to_json}
  analytics.requestId = #{request.env['action_dispatch.request_id'].to_json}
  analytics.init()


javascript:
  analytics.timeOnPage.baseUrl = #{url_for(profile: profile.identifier, controller: 'analytics_plugin/time_on_page').to_json}
  analytics.timeOnPage.updateInterval = #{AnalyticsPlugin::TimeOnPageUpdateIntervalMs.to_json}
  analytics.requestId = #{request.env['action_dispatch.request_id'].to_json}
  analytics.init()


Use profile to avoid problems with custom domains
analytics: Use profile to avoid problems with custom domains

coletivoEITA/noosfero-ecosol,CIRANDAS/noosfero-ecosol,coletivoEITA/noosfero-ecosol,coletivoEITA/noosfero-ecosol,CIRANDAS/noosfero-ecosol,CIRANDAS/noosfero-ecosol,coletivoEITA/noosfero-ecosol,coletivoEITA/noosfero-ecosol,coletivoEITA/noosfero-ecosol,samasti/noosfero,samasti/noosfero,samasti/noosfero,samasti/noosfero,samasti/noosfero,CIRANDAS/noosfero-ecosol,CIRANDAS/noosfero-ecosol,samasti/noosfero