Browse Source

general cleanups

master
parent
commit
20a4458c0a
  1. 3
      layouts/partials/matomo_head.html
  2. 2
      static/assets/hugo-matomo.css

3
layouts/partials/matomo_head.html

@ -2,8 +2,6 @@ @@ -2,8 +2,6 @@
<link rel="stylesheet" type="text/css" href="{{ "assets/hugo-matomo.css" | absURL }}" />
<!-- Matomo -->
<script type="text/javascript">
matomoHostURL = "{{- .Site.Params.matomo.url -}}";
matomoSiteId = {{- .Site.Params.matomo.id -}};
var _paq = window._paq = window._paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
{{ if and (isset .Site.Params.matomo "disablecookies") (eq .Site.Params.matomo.disablecookies true) }}
@ -19,7 +17,6 @@ @@ -19,7 +17,6 @@
_paq.push(['enableLinkTracking']);
(function() {
var u="{{- .Site.Params.matomo.url -}}/";
var id=
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '{{- .Site.Params.matomo.id -}}']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];

2
static/assets/hugo-matomo.css

@ -16,7 +16,7 @@ @@ -16,7 +16,7 @@
.consentCookieButton {
border-style: outset;
border-width: unset;
border-width: 2px;
padding: 0 10px 0 10px;
margin-left: 20px;
}
Loading…
Cancel
Save