mirror of
https://github.com/Noettore/cocoa-eh-hugo-theme.git
synced 2025-10-15 03:36:41 +02:00
Add all files
This commit is contained in:
13
layouts/partials/footer_scripts.html
Normal file
13
layouts/partials/footer_scripts.html
Normal file
@@ -0,0 +1,13 @@
|
||||
<!-- Google Analytics -->
|
||||
{{ if .Site.Params.GATracker }}
|
||||
<script type="text/javascript">
|
||||
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
|
||||
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
|
||||
</script>
|
||||
<script type="text/javascript">
|
||||
try {
|
||||
var pageTracker = _gat._getTracker("{{ .Site.Params.GATracker }}");
|
||||
pageTracker._trackPageview();
|
||||
} catch(err) {}
|
||||
</script>
|
||||
{{ end }}
|
Reference in New Issue
Block a user