Browse Source

Added Google Analytics tracking code

tags/last-sinatra-version
Adrian Short 14 years ago
parent
commit
306e017db1
2 changed files with 11 additions and 21 deletions
  1. +1
    -8
      public/style.css
  2. +10
    -13
      views/layout.haml

+ 1
- 8
public/style.css View File

@@ -41,14 +41,7 @@ input.postcode
font-size: 100%; font-size: 100%;
background-color: #fff; background-color: #fff;
text-align: left; text-align: left;
margin: 40px 0 0 0;
}

.credit
{
text-align: left;
font-size: 80%;
display: none;
margin: 40px 0 40px 0;
} }


a, a:visited a, a:visited


+ 10
- 13
views/layout.haml View File

@@ -2,8 +2,7 @@
!!! !!!
%html %html
%head %head
%title
= @page_title ? @page_title + " - Sutton Elections" : "Sutton Elections 6 May 2010"
%title= @page_title ? @page_title + " - Sutton Elections" : "Sutton Parliament and Council Elections 6 May 2010"
%link{ :rel => 'stylesheet', :type => 'text/css', :href => '/style.css' } %link{ :rel => 'stylesheet', :type => 'text/css', :href => '/style.css' }
%link{ :rel => 'stylesheet', :type => 'text/css', :href => '/print.css', :media => 'print' } %link{ :rel => 'stylesheet', :type => 'text/css', :href => '/print.css', :media => 'print' }
%link{ :rel => 'stylesheet', :type => 'text/css', :href => '/grid.css' } %link{ :rel => 'stylesheet', :type => 'text/css', :href => '/grid.css' }
@@ -11,10 +10,6 @@
<script type="text/javascript">try{Typekit.load();}catch(e){}</script> <script type="text/javascript">try{Typekit.load();}catch(e){}</script>
%body %body
.container_12 .container_12
-#
#header.grid_12
%a.date{ :href => '/' } 6 May 2010
.clear
#main #main
= yield = yield
.clear .clear
@@ -26,12 +21,14 @@
%a{ :href => '/how-the-parliament-election-works' } How the parliament election works %a{ :href => '/how-the-parliament-election-works' } How the parliament election works
%p %p
%a{ :href => '/how-the-council-election-works' } How the council election works %a{ :href => '/how-the-council-election-works' } How the council election works
-#
%p
%a{ :href => '/voting' } How to vote
%p %p
%a{ :href => '/about' } About this website %a{ :href => '/about' } About this website
%p.credit
Design
%a{ :href => "http://adrianshort.co.uk/" } Adrian Short
.clear
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-3042981-17");
pageTracker._trackPageview();
} catch(err) {}</script>

Loading…
Cancel
Save