System Interrupt Me!

A blog by a Mac user.

Octopress, GoSquared Analytics and Panic's Status Board

GoSquared provides widgets for use with Panic’s iPad Status Board app and GoSquared also provide a free account for a single website. So I thought I would give their service a try using this Octopress site and Panic’s Status Board app.

Octopress comes built with the Google Analytics code ready to accept your Google Analytics ID. To add GoSquared analytics to your Octopress site is very straight forward:

  1. Create a GoSquared account;
  2. Add the GoSquared javascript to your Octopress site’s _includes/custom/after_footer.html so it looks something like this;
(after_footer.html) download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{% comment %}
  Add content to be output at the bottom of each page. (You might use this for analytics scripts, for example)
{% endcomment %}

<script type="text/javascript">
  var GoSquared = {};
  GoSquared.acct = "YOUR_GoSquared_CODE";
  (function(w){
    function gs(){
      w._gstc_lt = +new Date;
      var d = document, g = d.createElement("script");
      g.type = "text/javascript";
      g.src = "//SOME_GoSquared_CODE.cloudfront.net/tracker.js";
      var s = d.getElementsByTagName("script")[0];
      s.parentNode.insertBefore(g, s);
    }
    w.addEventListener ?
      w.addEventListener("load", gs, false) :
      w.attachEvent("onload", gs);
  })(window);
</script>
  1. Generate and deploy your site;
  2. Add the GoSquared widget(s) to your Panic Status Board;
  3. Watch your site statistics on your iPad!