app/views/engineyard-theme/_header.html.haml in engineyard-theme-2.3.12 vs app/views/engineyard-theme/_header.html.haml in engineyard-theme-2.3.13

- old
+ new

@@ -15,40 +15,20 @@ =yield :head - unless Rails.env == 'development' || add_js != 'true' :plain - <script type='text/javascript'> - //<![CDATA[ - // Google Analytics for tangence.com marketing funnel - var _gaq = _gaq || []; - _gaq.push(['_setAccount', 'UA-764576-1']); - _gaq.push(['_setDomainName', '.engineyard.com']); - _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); - })(); - //]]> - </script> - <script type='text/javascript'> - //<![CDATA[ - // Google Analytics - var _gaq = _gaq || []; - _gaq.push( - ['_setAccount', 'UA-764576-1'], - ['_setDomainName',".engineyard.com"], - ['_setAllowAnchor',true], - ['_trackPageview']); + <script type="text/javascript"> + var _gaq = _gaq || []; + _gaq.push(['_setAccount', 'UA-764576-1']); + _gaq.push(['_setDomainName', '.engineyard.com']); + _gaq.push(['_trackPageview']); - (function() { - var ga = document.createElement('script'); - ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; - ga.setAttribute('async', 'true'); - document.documentElement.firstChild.appendChild(ga); - })(); - //]]> + (function() { + varga = 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); + })(); </script> %body{:id => content_for?(:body_id) ? yield(:body_id) : ''} #container .container_16