diff options
author | Ryan Schanzenbacher <ryan@rschanz.org> | 2021-12-26 00:30:09 -0500 |
---|---|---|
committer | Ryan Schanzenbacher <ryan@rschanz.org> | 2021-12-26 00:30:09 -0500 |
commit | 98a21b966410c127e74b16e7a2817882ee16560f (patch) | |
tree | ee646c86e3d3f0fa1cd952294d49feeeb700d60f /themes/hugo-coder/layouts/partials/analytics/matomo.html | |
parent | e6eec31b71ab728f6610f4e764b2e206fb95f940 (diff) |
convert theme from submodule to regular files
Diffstat (limited to 'themes/hugo-coder/layouts/partials/analytics/matomo.html')
m--------- | themes/hugo-coder | 0 | ||||
-rw-r--r-- | themes/hugo-coder/layouts/partials/analytics/matomo.html | 13 |
2 files changed, 13 insertions, 0 deletions
diff --git a/themes/hugo-coder b/themes/hugo-coder deleted file mode 160000 | |||
Subproject 55b2a150f990bc56364dba347bc9acc6aab07be | |||
diff --git a/themes/hugo-coder/layouts/partials/analytics/matomo.html b/themes/hugo-coder/layouts/partials/analytics/matomo.html new file mode 100644 index 0000000..8fabb63 --- /dev/null +++ b/themes/hugo-coder/layouts/partials/analytics/matomo.html | |||
@@ -0,0 +1,13 @@ | |||
1 | <script type="application/javascript"> | ||
2 | var _paq = window._paq = window._paq || []; | ||
3 | /* tracker methods like "setCustomDimension" should be called before "trackPageView" */ | ||
4 | _paq.push(['trackPageView']); | ||
5 | _paq.push(['enableLinkTracking']); | ||
6 | (function() { | ||
7 | var u="https://{{ $.Site.Params.matomo.serverURL }}/"; | ||
8 | _paq.push(['setTrackerUrl', u+'matomo.php']); | ||
9 | _paq.push(['setSiteId', '{{ $.Site.Params.matomo.siteID | default "1" }}']); | ||
10 | var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; | ||
11 | g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s); | ||
12 | })(); | ||
13 | </script> | ||