Revert "add matomo"

This commit is contained in:
Salar Rahmanian 2021-11-20 18:18:18 -08:00 committed by GitHub
parent 76f3708a1b
commit 103355eaa7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 25 deletions

View file

@ -28,7 +28,6 @@ twitter = "@SalarRahmanian"
largeTwitterCard = false
introDescription = "Software Engineer based in San Francisco Bay Area."
ga_analytics = "UA-47014432-1"
enableMatomo = true
numberOfTagsShown = 14
fallBackOgImage = "salar.jpg"
codeMaxLines = 10

View file

@ -1,24 +0,0 @@
{{- with .Site.Params.ga_analytics }}
<script async src="https://www.googletagmanager.com/gtag/js?id={{ . }}"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', '{{ . }}');
</script>
{{- end -}}
{{- with .Site.Params.enableMatomo }}
<script>
var _paq = window._paq = window._paq || [];
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="//softinio.dev/matomo/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '1']);
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);
})();
</script>
{{- end -}}