mirror of
https://github.com/c0de-archive/pelican-mg.git
synced 2025-07-30 13:30:17 +00:00
first commit
This commit is contained in:
10
templates/analytics.html
Normal file
10
templates/analytics.html
Normal file
@@ -0,0 +1,10 @@
|
||||
{% if GOOGLE_ANALYTICS %}
|
||||
<script>
|
||||
(function(b,o,i,l,e,r){b.GoogleAnalyticsObject=l;b[l]||(b[l]=
|
||||
function(){(b[l].q=b[l].q||[]).push(arguments)});b[l].l=+new Date;
|
||||
e=o.createElement(i);r=o.getElementsByTagName(i)[0];
|
||||
e.src='//www.google-analytics.com/analytics.js';
|
||||
r.parentNode.insertBefore(e,r)}(window,document,'script','ga'));
|
||||
ga('create','{{ GOOGLE_ANALYTICS }}');ga('send','pageview');
|
||||
</script>
|
||||
{% endif %}
|
Reference in New Issue
Block a user