Skip to content

Commit

Permalink
[fix] Displayed ga tags when ga param is not set.
Browse files Browse the repository at this point in the history
  • Loading branch information
Daisuke Tsuji committed Oct 11, 2016
1 parent bce2043 commit decdf7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/_default/baseof.html
Expand Up @@ -12,7 +12,7 @@

<body>
{{ if ne (getenv "HUGO_ENV") "DEV" }}
<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','https://www.google-analytics.com/analytics.js','ga'); ga('create', '{{ .Site.GoogleAnalytics }}', 'auto'); ga('send', 'pageview'); </script>
{{ template "_internal/google_analytics.html" . }}
{{ end }}

<header class="l-header">
Expand Down

0 comments on commit decdf7b

Please sign in to comment.