Skip to content

Commit

Permalink
Update tracking code to work whether the containing page is http or h…
Browse files Browse the repository at this point in the history
…ttps.
  • Loading branch information
brandon-beacher committed Jun 10, 2011
1 parent 8fb030c commit 53ea368
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/rack_clicky.rb
Expand Up @@ -2,9 +2,9 @@ module Rack
class Clicky class Clicky


TRACKING_CODE = <<-EOTC TRACKING_CODE = <<-EOTC
<script src="http://static.getclicky.com/js" type="text/javascript"></script> <script src="//static.getclicky.com/js" type="text/javascript"></script>
<script type="text/javascript">clicky.init({{CODE}});</script> <script type="text/javascript">try{ clicky.init({{CODE}}); }catch(e){}</script>
<noscript><p><img alt="Clicky" width="1" height="1" src="http://in.getclicky.com/{{CODE}}ns.gif" /></p></noscript> <noscript><p><img alt="Clicky" width="1" height="1" src="//in.getclicky.com/{{CODE}}ns.gif" /></p></noscript>
EOTC EOTC


def initialize(app, site_id, options = {}) def initialize(app, site_id, options = {})
Expand Down

0 comments on commit 53ea368

Please sign in to comment.