|
|
|
@ -10,6 +10,26 @@
|
|
|
|
|
{{ if .Site.GoogleAnalytics }}
|
|
|
|
|
{{ template "_internal/google_analytics.html" . }}
|
|
|
|
|
{{ end }}
|
|
|
|
|
{{ with .Site.Params.paige.analytics.chartbeat }}
|
|
|
|
|
<script type='text/javascript'>
|
|
|
|
|
(function() {
|
|
|
|
|
var _sf_async_config = window._sf_async_config = (window._sf_async_config || {});
|
|
|
|
|
_sf_async_config.uid = {{ .account_id }};
|
|
|
|
|
_sf_async_config.domain = {{ .domain }};
|
|
|
|
|
_sf_async_config.useCanonical = true;
|
|
|
|
|
_sf_async_config.useCanonicalDomain = true;
|
|
|
|
|
function loadChartbeat() {
|
|
|
|
|
var e = document.createElement('script');
|
|
|
|
|
var n = document.getElementsByTagName('script')[0];
|
|
|
|
|
e.type = 'text/javascript';
|
|
|
|
|
e.async = true;
|
|
|
|
|
e.src = 'https://static.chartbeat.com/js/chartbeat.js';
|
|
|
|
|
n.parentNode.insertBefore(e, n);
|
|
|
|
|
}
|
|
|
|
|
loadChartbeat();
|
|
|
|
|
})();
|
|
|
|
|
</script>
|
|
|
|
|
{{ end }}
|
|
|
|
|
{{ with .Site.Params.paige.analytics.clicky }}
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
var clicky_site_ids = clicky_site_ids || [];
|
|
|
|
|