Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add Gaug.es tracking

  • Loading branch information...
commit d667b6ec7e9b8fc80c8338c0f75867229da1e33d 1 parent f4469c5
@mislav authored
Showing with 7 additions and 0 deletions.
  1. +7 −0 app.rb
View
7 app.rb
@@ -342,6 +342,7 @@ def last_modified_from_photos(photos)
- if settings.production?
:javascript
var _gaq = _gaq || [];
+ var _gauges = _gauges || [];
_gaq.push(['_setAccount', 'UA-87067-8']);
_gaq.push(['_setDetectFlash', false]);
_gaq.push(['_trackPageview']);
@@ -350,6 +351,12 @@ def last_modified_from_photos(photos)
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);
+
+ var t = document.createElement('script'); t.type = 'text/javascript'; t.async = true;
+ t.id = 'gauges-tracker'; t.src = '//secure.gaug.es/track.js';
+ t.setAttribute('data-site-id', '4e417aeff5a1f5142f000001');
+ s = document.getElementsByTagName('script')[0];
+ s.parentNode.insertBefore(t, s);
})();
@@ index
Please sign in to comment.
Something went wrong with that request. Please try again.