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

macartur/noosfero,LuisBelo/tccnoosfero,LuisBelo/tccnoosfero,AlessandroCaetano/noosfero,samasti/noosfero,macartur/noosfero,macartur/noosfero,CIRANDAS/noosfero-ecosol,LuisBelo/tccnoosfero,vfcosta/noosfero,AlessandroCaetano/noosfero,CIRANDAS/noosfero-ecosol,vfcosta/noosfero,macartur/noosfero,LuisBelo/tccnoosfero,AlessandroCaetano/noosfero,CIRANDAS/noosfero-ecosol,macartur/noosfero,samasti/noosfero,AlessandroCaetano/noosfero,vfcosta/noosfero,macartur/noosfero,coletivoEITA/noosfero-ecosol,CIRANDAS/noosfero-ecosol,coletivoEITA/noosfero-ecosol,macartur/noosfero,samasti/noosfero,CIRANDAS/noosfero-ecosol,AlessandroCaetano/noosfero,coletivoEITA/noosfero-ecosol,samasti/noosfero,coletivoEITA/noosfero-ecosol,coletivoEITA/noosfero-ecosol,vfcosta/noosfero,samasti/noosfero,vfcosta/noosfero,AlessandroCaetano/noosfero,AlessandroCaetano/noosfero,coletivoEITA/noosfero-ecosol,LuisBelo/tccnoosfero,vfcosta/noosfero,samasti/noosfero,LuisBelo/tccnoosfero