Commit 0284829622f122078199abbbc2d2d1491ab473e2
1 parent
18bda87e
Exists in
ratings_minor_fixes
and in
3 other branches
analytics: Use profile to avoid problems with custom domains
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
plugins/analytics/views/analytics_plugin/_body_ending.html.slim
1 | javascript: | 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 | analytics.timeOnPage.updateInterval = #{AnalyticsPlugin::TimeOnPageUpdateIntervalMs.to_json} | 3 | analytics.timeOnPage.updateInterval = #{AnalyticsPlugin::TimeOnPageUpdateIntervalMs.to_json} |
4 | analytics.requestId = #{request.env['action_dispatch.request_id'].to_json} | 4 | analytics.requestId = #{request.env['action_dispatch.request_id'].to_json} |
5 | analytics.init() | 5 | analytics.init() |