FEATURE: cross-domain tracking for Google universal analytics

This commit is contained in:
Neil Lalonde
2017-07-13 15:21:44 -04:00
parent 7fb62bdab4
commit 3ebd8838af
4 changed files with 13 additions and 0 deletions

View File

@ -23,6 +23,9 @@ module ApplicationHelper
if current_user.present?
result[:userId] = current_user.id
end
if SiteSetting.ga_universal_auto_link_domains.present?
result[:allowLinker] = true
end
result.to_json.html_safe
end