<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -77,6 +77,10 @@ helpers do
     index = Article.recent.index(article)
     Article.recent[index -1] if index &gt; 0
   end
+  def analytics_code
+    request.host == 'thelincolnshirepoacher.com' ? 'UA-256176-12' : 'UA-256176-7'
+  end
+
 end
 
 get '/' do</diff>
      <filename>app.rb</filename>
    </modified>
    <modified>
      <diff>@@ -45,8 +45,8 @@
       :javascript
         var gaJsHost = ((&quot;https:&quot; == document.location.protocol) ? &quot;https://ssl.&quot; : &quot;http://www.&quot;);
         document.write(unescape(&quot;%3Cscript src='&quot; + gaJsHost + &quot;google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E&quot;));
-      :javascript
-        try {
-        var pageTracker = _gat._getTracker(&quot;UA-256176-7&quot;);
-        pageTracker._trackPageview();
-        } catch(err) {}
+    :javascript
+      try {
+      var pageTracker = _gat._getTracker(&quot;#{analytics_code}&quot;);
+      pageTracker._trackPageview();
+      } catch(err) {}</diff>
      <filename>views/layout.haml</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>8e58be1298defc275b9c1e1e06c389a401791a55</id>
    </parent>
  </parents>
  <author>
    <name>Chris Lloyd</name>
    <email>christopher.lloyd@gmail.com</email>
  </author>
  <url>http://github.com/chrislloyd/poacher/commit/b8cc77fbd21c323f31c1078e37c054edf0b37bfd</url>
  <id>b8cc77fbd21c323f31c1078e37c054edf0b37bfd</id>
  <committed-date>2009-11-03T03:57:47-08:00</committed-date>
  <authored-date>2009-11-03T03:57:47-08:00</authored-date>
  <message>Per-site analytics code.</message>
  <tree>9fbd9771bf1b2cd2b2b42b9d3ccc98ea1d8a1984</tree>
  <committer>
    <name>Chris Lloyd</name>
    <email>christopher.lloyd@gmail.com</email>
  </committer>
</commit>
