diff options
| author | Ben Beltran <ben@nsovocal.com> | 2010-12-01 17:20:06 -0700 |
|---|---|---|
| committer | Ben Beltran <ben@nsovocal.com> | 2010-12-01 17:20:06 -0700 |
| commit | 9904558b3ae319587bb039233a50f561a847e8f7 (patch) | |
| tree | 437e0dfc3c6557911cb1c8fbcf0a68b344d6d415 /views | |
| parent | dd8a375b20d10bb986d4b143f1cf923aec7d6b6e (diff) | |
Tracking para Google Analytics
Solo agregue el código de Google Analytics.
Diffstat (limited to 'views')
| -rw-r--r-- | views/layout.haml | 11 | ||||
| -rw-r--r-- | views/layoutmini.haml | 11 |
2 files changed, 22 insertions, 0 deletions
diff --git a/views/layout.haml b/views/layout.haml index 160b858..e47f5e2 100644 --- a/views/layout.haml +++ b/views/layout.haml @@ -10,6 +10,17 @@ %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 diff --git a/views/layoutmini.haml b/views/layoutmini.haml index 5e24c98..7270c4f 100644 --- a/views/layoutmini.haml +++ b/views/layoutmini.haml @@ -72,6 +72,17 @@ }); }); %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 |