Merge pull request #17 from markcaudill/guages

Add guag.es integration.
This commit is contained in:
Alexandre Vicenzi 2015-11-24 23:33:03 -02:00
commit b24b8be12c
2 changed files with 17 additions and 0 deletions

View file

@ -94,6 +94,9 @@
</footer> </footer>
</main> </main>
{% include "partial/ga.html" %} {% include "partial/ga.html" %}
{% if GUAGES %}
{% include "partial/guages.html" %}
{% endif %}
{% if ADD_THIS_ID %} {% if ADD_THIS_ID %}
<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid={{ ADD_THIS_ID }}" async="async"></script> <script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid={{ ADD_THIS_ID }}" async="async"></script>
{% endif %} {% endif %}

View file

@ -0,0 +1,14 @@
<script type="text/javascript">
var _gauges = _gauges || [];
(function() {
var t = document.createElement('script');
t.type = 'text/javascript';
t.async = true;
t.id = 'gauges-tracker';
t.setAttribute('data-site-id', '{{ GUAGES }}');
t.setAttribute('data-track-path', 'https://track.gaug.es/track.gif');
t.src = 'https://track.gaug.es/track.js';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(t, s);
})();
</script>