Strip http(s) from SiteSetting.ga_domain_name

This commit is contained in:
Neil Lalonde 2013-12-06 11:46:33 -05:00
parent cece283667
commit e3660e59b4

View File

@ -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]);