Move analytics into separate files
This commit is contained in:
15
layouts/partials/paige/analytics/clicky.html
Normal file
15
layouts/partials/paige/analytics/clicky.html
Normal file
@@ -0,0 +1,15 @@
|
||||
{{ $page := . }}
|
||||
|
||||
{{ with $page.Param "paige.analytics.clicky" }}
|
||||
<script type="text/javascript">
|
||||
var clicky_site_ids = clicky_site_ids || [];
|
||||
clicky_site_ids.push("{{ .account_id | safeJS }}");
|
||||
(function() {
|
||||
var s = document.createElement('script');
|
||||
s.type = 'text/javascript';
|
||||
s.async = true;
|
||||
s.src = 'https://static.getclicky.com/js';
|
||||
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(s);
|
||||
})();
|
||||
</script>
|
||||
{{ end }}
|
Reference in New Issue
Block a user