Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add google analytics

  • Loading branch information...
commit 4acf3efdd1f2e191644c9ce55e40a53bfb6193f4 1 parent f1844c0
@rafaelp rafaelp authored
View
13 _layouts/default.haml
@@ -1,6 +1,7 @@
!!! 5
%html{:lang => "pt"}
%head
+ %title {{ page.title }}
%meta{:charset => "utf-8"}
%meta{:name => "keywords", :content => "" }
%meta{:name => "description", :content => "" }
@@ -8,9 +9,19 @@
%meta{:name => "copyright", :content => "©#{Date.today.year} BielSystems" }
%meta{:name => "robots", :content => "index,follow" }
%link{:rel => "shortcut icon", :href => "/favicon.ico", :type => "image/x-icon" }
- %title {{ page.title }}
/[if lt IE 9]
%script{:src => "http://html5shim.googlecode.com/svn/trunk/html5.js"}
+ :plain
+ <script type="text/javascript">
+ var _gaq = _gaq || [];
+ _gaq.push(['_setAccount', 'UA-257015-8']);
+ _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>
%body
== {{ content }}
View
13 _layouts/default.html
@@ -1,6 +1,7 @@
<!DOCTYPE html>
<html lang='pt'>
<head>
+ <title>{{ page.title }}</title>
<meta charset='utf-8' />
<meta content='' name='keywords' />
<meta content='' name='description' />
@@ -8,10 +9,20 @@
<meta content='©2012 BielSystems' name='copyright' />
<meta content='index,follow' name='robots' />
<link href='/favicon.ico' rel='shortcut icon' type='image/x-icon' />
- <title>{{ page.title }}</title>
<!--[if lt IE 9]>
<script src='http://html5shim.googlecode.com/svn/trunk/html5.js'></script>
<![endif]-->
+ <script type="text/javascript">
+ var _gaq = _gaq || [];
+ _gaq.push(['_setAccount', 'UA-257015-8']);
+ _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>
</head>
<body>
{{ content }}
View
14 _layouts/error.haml
@@ -1,6 +1,7 @@
!!! 5
%html{:lang => "pt"}
%head
+ %title {{ page.title }}
%meta{:charset => "utf-8"}
%meta{:name => "keywords", :content => "" }
%meta{:name => "description", :content => "" }
@@ -9,8 +10,19 @@
%meta{:name => "robots", :content => "index,follow" }
%link{:rel => "shortcut icon", :href => "/favicon.ico", :type => "image/x-icon" }
%link{:rel => "stylesheet", :href => "/stylesheets/error.css", :type => "text/css", :media => "screen" }
- %title {{ page.title }}
/[if lt IE 9]
%script{:src => "http://html5shim.googlecode.com/svn/trunk/html5.js"}
+ :plain
+ <script type="text/javascript">
+ var _gaq = _gaq || [];
+ _gaq.push(['_setAccount', 'UA-257015-8']);
+ _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>
%body
== {{ content }}
View
13 _layouts/error.html
@@ -1,6 +1,7 @@
<!DOCTYPE html>
<html lang='pt'>
<head>
+ <title>{{ page.title }}</title>
<meta charset='utf-8' />
<meta content='' name='keywords' />
<meta content='' name='description' />
@@ -9,10 +10,20 @@
<meta content='index,follow' name='robots' />
<link href='/favicon.ico' rel='shortcut icon' type='image/x-icon' />
<link href='/stylesheets/error.css' media='screen' rel='stylesheet' type='text/css' />
- <title>{{ page.title }}</title>
<!--[if lt IE 9]>
<script src='http://html5shim.googlecode.com/svn/trunk/html5.js'></script>
<![endif]-->
+ <script type="text/javascript">
+ var _gaq = _gaq || [];
+ _gaq.push(['_setAccount', 'UA-257015-8']);
+ _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>
</head>
<body>
{{ content }}
Please sign in to comment.
Something went wrong with that request. Please try again.