mirror of
https://github.com/softinio/softinio.com.git
synced 2025-09-03 18:46:40 -07:00
Add matomo back & add peertube shortcode
This commit is contained in:
parent
a2ac683f1c
commit
9d0b03b8c2
3 changed files with 17 additions and 3 deletions
|
@ -7,7 +7,7 @@
|
|||
gtag('config', '{{ . }}');
|
||||
</script>
|
||||
{{- end -}}
|
||||
{{- with .Site.Params.enableMatomo }}
|
||||
{{- with .Site.Params.matomo_site_id }}
|
||||
<script>
|
||||
var _paq = window._paq = window._paq || [];
|
||||
_paq.push(['trackPageView']);
|
||||
|
@ -15,7 +15,7 @@
|
|||
(function() {
|
||||
var u="//softinio.dev/matomo/";
|
||||
_paq.push(['setTrackerUrl', u+'matomo.php']);
|
||||
_paq.push(['setSiteId', '1']);
|
||||
_paq.push(['setSiteId', {{.}}]);
|
||||
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
|
||||
g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
|
||||
})();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue