mirror of
https://github.com/discourse/discourse.git
synced 2025-06-02 12:34:34 +08:00
FEATURE: cross-domain tracking for Google universal analytics
This commit is contained in:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user