[Git][noosfero/noosfero][master] analytics: Use profile to avoid problems with custom domains
Bráulio Bhavamitra
gitlab at mg.gitlab.com
Sun May 22 12:17:01 BRT 2016
Bráulio Bhavamitra pushed to branch master at Noosfero / noosfero
Commits:
02848296 by Braulio Bhavamitra at 2016-05-22T12:16:38-03:00
analytics: Use profile to avoid problems with custom domains
- - - - -
1 changed file:
- plugins/analytics/views/analytics_plugin/_body_ending.html.slim
Changes:
=====================================
plugins/analytics/views/analytics_plugin/_body_ending.html.slim
=====================================
--- a/plugins/analytics/views/analytics_plugin/_body_ending.html.slim
+++ b/plugins/analytics/views/analytics_plugin/_body_ending.html.slim
@@ -1,5 +1,5 @@
javascript:
- analytics.timeOnPage.baseUrl = #{url_for(controller: 'analytics_plugin/time_on_page').to_json}
+ 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()
View it on GitLab: https://gitlab.com/noosfero/noosfero/commit/0284829622f122078199abbbc2d2d1491ab473e2
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20160522/70a5a0fb/attachment.html>
More information about the Noosfero-dev
mailing list