Remove layout ga
This commit is contained in:
parent
1dfafd5c6b
commit
7139ab7429
|
@ -37,6 +37,6 @@ class @GoogleAnalytics
|
|||
@analyticsId: ->
|
||||
'<%= ENV['GOOGLE'] %>'
|
||||
|
||||
<%- if ENV['GOOGLE'] %>
|
||||
<% if ENV['GOOGLE'] %>
|
||||
GoogleAnalytics.load()
|
||||
<% end %>
|
||||
|
|
|
@ -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);
|
||||
})();
|
|
@ -62,5 +62,3 @@ html
|
|||
= render 'common/welcome_new_year'
|
||||
= yield
|
||||
= render "layouts/footer"
|
||||
|
||||
= render 'layouts/google_analytics'
|
||||
|
|
Loading…
Reference in New Issue