2015-11-20 23:25:34 +01:00
|
|
|
<script src="/assets/js/kremalicious3.min.js" async></script>
|
|
|
|
|
|
|
|
{% if jekyll.environment == "production" %}
|
|
|
|
<script>
|
|
|
|
var _paq = _paq || [];
|
|
|
|
_paq.push(['trackPageView']);
|
|
|
|
_paq.push(['enableLinkTracking']);
|
|
|
|
(function() {
|
|
|
|
var u="//analytics.kremalicious.com/";
|
|
|
|
_paq.push(['setTrackerUrl', u+'piwik.php']);
|
|
|
|
_paq.push(['setSiteId', 1]);
|
|
|
|
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
|
|
|
|
g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
|
|
|
|
})();
|
|
|
|
</script>
|
|
|
|
<noscript><p><img src="//analytics.kremalicious.com/piwik.php?idsite=1" style="border:0;" alt="" /></p></noscript>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
<script>
|
|
|
|
(function(window) {
|
|
|
|
|
2015-11-20 23:36:45 +01:00
|
|
|
// Google Analytics async snippet
|
|
|
|
// http://goo.gl/3FPNDx
|
|
|
|
window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};
|
|
|
|
ga.l=+new Date;
|
2015-11-20 23:25:34 +01:00
|
|
|
|
2015-11-20 23:36:45 +01:00
|
|
|
// Create the GA tracker
|
|
|
|
ga('create', 'UA-1441794-2', 'auto', {siteSpeedSampleRate: 10});
|
2015-11-20 23:25:34 +01:00
|
|
|
|
2015-11-20 23:36:45 +01:00
|
|
|
{% if jekyll.environment != 'production' %}
|
|
|
|
// In non-production mode, simply log GA hits to the console.
|
|
|
|
// Note, tasks must be set before sending the first hit
|
|
|
|
ga(function(tracker) {
|
|
|
|
tracker.set('sendHitTask', function() {
|
|
|
|
// Throw to stop subsequent tasks.
|
|
|
|
throw 'Abort tracking in non-production environments.'
|
|
|
|
});
|
|
|
|
});
|
|
|
|
{% endif %}
|
2015-11-20 23:25:34 +01:00
|
|
|
|
2015-11-20 23:36:45 +01:00
|
|
|
// Send initial pageview
|
|
|
|
ga('send', 'pageview');
|
|
|
|
|
|
|
|
// Track uncaught errors
|
|
|
|
window.onerror = function(message, url, line, col) {
|
|
|
|
var desc = message + ' (line: ' + line + ', url: ' + url + ', col: '
|
2015-11-20 23:25:34 +01:00
|
|
|
+ col + ')';
|
2015-11-20 23:36:45 +01:00
|
|
|
|
|
|
|
ga('send', 'exception', {
|
|
|
|
exDescription: 'window.onerror: ' + desc,
|
|
|
|
exFatal: false
|
|
|
|
});
|
|
|
|
};
|
|
|
|
|
2015-11-20 23:25:34 +01:00
|
|
|
}(window));
|
|
|
|
</script>
|
|
|
|
|
|
|
|
{% if jekyll.environment == "production" %}
|
|
|
|
<script async src="//www.google-analytics.com/analytics.js"></script>
|
|
|
|
{% else %}
|
|
|
|
<script async src="//www.google-analytics.com/analytics_debug.js"></script>
|
|
|
|
{% endif%}
|