Permalink
Browse files

Update Piwik Analytics to work with newer versions of Hugo

  • Loading branch information...
polyfloyd committed Nov 22, 2017
1 parent 0cdd8d1 commit 367fd4ab538c441e8566aa85fe1e2504765d17c2
Showing with 5 additions and 5 deletions.
  1. +2 −2 README.md
  2. +3 −3 layouts/partials/piwik_analytics.html
View
@@ -95,8 +95,8 @@ paginate = 10
custom_js = ["js/my.js"]
[params.piwikAnalytics]
siteID = 2
piwikRoot = "//analytics.example.com/"
siteid = 2
piwikroot = "//analytics.example.com/"
[menu]
# Shown in the side menu.
@@ -5,12 +5,12 @@
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="{{ .piwikRoot }}";
var u="{{ .piwikroot }}";
_paq.push(['setTrackerUrl', u+'piwik.php']);
_paq.push(['setSiteId', {{ .siteID }}]);
_paq.push(['setSiteId', {{ .siteid }}]);
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="{{ .piwikRoot}}piwik.php?idsite={{ .siteID }}" style="border:0;" alt="" /></p></noscript>
<noscript><p><img src="{{ .piwikroot }}piwik.php?idsite={{ .siteid }}" style="border:0;" alt="" /></p></noscript>
{{ end }}

0 comments on commit 367fd4a

Please sign in to comment.