Remove layout ga

This commit is contained in:
yafeilee 2016-04-25 11:34:36 +08:00
parent 1dfafd5c6b
commit 7139ab7429
3 changed files with 1 additions and 14 deletions

View File

@ -37,6 +37,6 @@ class @GoogleAnalytics
@analyticsId: ->
'<%= ENV['GOOGLE'] %>'
<%- if ENV['GOOGLE'] %>
<% if ENV['GOOGLE'] %>
GoogleAnalytics.load()
<% end %>

View File

@ -1,11 +0,0 @@
- if ENV['GOOGLE'].present?
javascript:
var _gaq = _gaq || [];
_gaq.push(['_setAccount', '#{ENV['GOOGLE']}']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();

View File

@ -62,5 +62,3 @@ html
= render 'common/welcome_new_year'
= yield
= render "layouts/footer"
= render 'layouts/google_analytics'