29 lines
1.1 KiB
HTML
29 lines
1.1 KiB
HTML
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
|
|
<script>window.jQuery || document.write('<script src="{% asset_path vendor/jquery-1.9.1.js %}"><\/script>')</script>
|
|
{% javascript app %}
|
|
{% if site.google_analytics %}
|
|
<!-- Asynchronous Google Analytics snippet -->
|
|
<script>
|
|
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
|
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
|
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
|
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
|
|
|
|
(function() {
|
|
var linkerOptions = {{ site.google_analytics_linker | jsonify }};
|
|
var host = window.location.host;
|
|
|
|
if (linkerOptions !== null) {
|
|
ga('create', '{{ site.google_analytics }}', host, 'auto', {
|
|
'allowLinker': true
|
|
});
|
|
ga('require', 'linker');
|
|
ga('linker:autoLink', linkerOptions[host]);
|
|
} else {
|
|
ga('create', '{{ site.google_analytics }}', host);
|
|
}
|
|
ga('send', 'pageview');
|
|
})();
|
|
</script>
|
|
{% endif %}
|
|
{% if page.comments %}{% include disqus_comments.html %}{% endif %}
|