app/views/engineyard-theme/_header.html.haml in engineyard-theme-2.2.8 vs app/views/engineyard-theme/_header.html.haml in engineyard-theme-2.2.9
- old
+ new
@@ -16,12 +16,41 @@
=yield :head
- unless Rails.env == 'development' || add_js != 'true'
:plain
<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);})();
+ //<![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']);
+
+ (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);
+ })();
+ //]]>
+ </script>
+
%body{:id => content_for?(:body_id) ? yield(:body_id) : ''}
#container
.wrapper
.header
- if add_navigation == 'true'