Commit e6ef397a189367f96e8d832454dced61bf603463

Authored by Braulio Bhavamitra
Committed by Macartur Sousa
1 parent 437b82af
Exists in elasticsearch_api

analytics: Use profile to avoid problems with custom domains

plugins/analytics/views/analytics_plugin/_body_ending.html.slim
1 1 javascript:
2   - analytics.timeOnPage.baseUrl = #{url_for(controller: 'analytics_plugin/time_on_page').to_json}
  2 + analytics.timeOnPage.baseUrl = #{url_for(profile: profile.identifier, controller: 'analytics_plugin/time_on_page').to_json}
3 3 analytics.timeOnPage.updateInterval = #{AnalyticsPlugin::TimeOnPageUpdateIntervalMs.to_json}
4 4 analytics.requestId = #{request.env['action_dispatch.request_id'].to_json}
5 5 analytics.init()
... ...