mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 08:46:19 +08:00
Strip http(s) from SiteSetting.ga_domain_name
This commit is contained in:
parent
cece283667
commit
e3660e59b4
|
@ -4,7 +4,7 @@
|
||||||
_gaq.push(['_setAccount', '<%= SiteSetting.ga_tracking_code %>']);
|
_gaq.push(['_setAccount', '<%= SiteSetting.ga_tracking_code %>']);
|
||||||
|
|
||||||
<% if SiteSetting.ga_domain_name.present? %>
|
<% if SiteSetting.ga_domain_name.present? %>
|
||||||
_gaq.push(['_setDomainName', '<%= SiteSetting.ga_domain_name %>']);
|
_gaq.push(['_setDomainName', '<%= SiteSetting.ga_domain_name.gsub(/^http(s)?:\/\//, '') %>']);
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
_gaq.push(['_setCustomVar', 1, 'Anonymous', <%= !current_user %>, 2]);
|
_gaq.push(['_setCustomVar', 1, 'Anonymous', <%= !current_user %>, 2]);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user