Add guag.es integration.
Set GUAGES in pelicanconf.py to your data-site-id. See http://get.gaug.es/
This commit is contained in:
parent
ba5405da0e
commit
8c3ad620c8
2 changed files with 17 additions and 0 deletions
|
@ -94,6 +94,7 @@
|
|||
</footer>
|
||||
</main>
|
||||
{% include "partial/ga.html" %}
|
||||
{% include "partial/guages.html" %}
|
||||
{% if ADD_THIS_ID %}
|
||||
<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid={{ ADD_THIS_ID }}" async="async"></script>
|
||||
{% endif %}
|
||||
|
|
16
templates/partial/guages.html
Normal file
16
templates/partial/guages.html
Normal 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 %}
|
Loading…
Reference in a new issue