Add guag.es integration.

Set GUAGES in pelicanconf.py to your data-site-id.

See http://get.gaug.es/
This commit is contained in:
Mark Caudill 2015-11-23 19:43:10 -05:00
parent ba5405da0e
commit 8c3ad620c8
2 changed files with 17 additions and 0 deletions

View file

@ -94,6 +94,7 @@
</footer> </footer>
</main> </main>
{% include "partial/ga.html" %} {% include "partial/ga.html" %}
{% include "partial/guages.html" %}
{% 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,16 @@
{% if GUAGES %}
<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>
{% endif %}