-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgauges.tpl
25 lines (25 loc) · 815 Bytes
/
gauges.tpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{*
* Include Gaug.es tracking
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*}
{if isset($gauges-site-id)}
{literal}
<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', '{/literal}{$gauges-site-id}{literal}');
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>
{/literal}
{/if}