]> git.r.bdr.sh - rbdr/grita/commitdiff
Tracking para Google Analytics
authorBen Beltran <redacted>
Thu, 2 Dec 2010 00:20:06 +0000 (17:20 -0700)
committerBen Beltran <redacted>
Thu, 2 Dec 2010 00:20:06 +0000 (17:20 -0700)
Solo agregue el código de Google Analytics.

views/layout.haml
views/layoutmini.haml

index 160b85847c0f4c989b1997cd9029b0d450e12cbc..e47f5e2bcb3785fc785a6b99dd343989a0b380ec 100644 (file)
                %link{:rel => "icon", :href => "/images/favicon.ico", :type => "image/x-icon"}
                %link{:rel => "icon", :href => "/images/favicon.png", :type => "image/png"}
                %meta{'http-equiv' => 'Contet-Type', :content => 'text/html; charset=utf-8' }/
+               %script{:type => "text/javascript" }
+                       :plain
+                               var _gaq = _gaq || [];
+                                 _gaq.push(['_setAccount', 'UA-20018878-1']);
+                                 _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);
+                                 })();
        %body
                #wrapper
                        #header
index 5e24c98f2deb6f19f4e0e12a99b933a0e793e536..7270c4f4f881cc968b01758754273e5bf084c8f5 100644 (file)
                                           });
                                });
                %meta{'http-equiv' => 'Contet-Type', :content => 'text/html; charset=utf-8' }/
+               %script{:type => "text/javascript" }
+                       :plain
+                               var _gaq = _gaq || [];
+                                 _gaq.push(['_setAccount', 'UA-20018878-1']);
+                                 _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);
+                                 })();
        %body
                #wrapper
                        #header