Merge pull request #17 from markcaudill/guages
Add guag.es integration.
This commit is contained in:
commit
b24b8be12c
2 changed files with 17 additions and 0 deletions
|
@ -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 %}
|
||||||
|
|
14
templates/partial/guages.html
Normal file
14
templates/partial/guages.html
Normal 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>
|
Loading…
Reference in a new issue