Add hotjar.com analytics

master
Will Faught 3 years ago
parent da5b346677
commit 765c0af402

@ -186,6 +186,8 @@ paige:
finteza: # finteza.com
account_id: "123456"
script_url: "https://example.com/script.js"
hotjar: # hotjar.com
account_id: "123456"
matomo: # matomo.org
account_id: "123456"
host_url: "https://example.com"

@ -55,6 +55,19 @@ fz("register","website","{{ .account_id }}");
</script>
<noscript>{{ i18n "paige_analytics_noscript" }}</noscript>
{{ end }}
{{ with .Site.Params.paige.analytics.hotjar }}
<script type="application/javascript">
(function(h,o,t,j,a,r){
h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)};
h._hjSettings={hjid:{{ .account_id }},hjsv:6};
a=o.getElementsByTagName('head')[0];
r=o.createElement('script');r.async=1;
r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv;
a.appendChild(r);
})(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv=');
</script>
<noscript>{{ i18n "paige_analytics_noscript" }}</noscript>
{{ end }}
{{ with .Site.Params.paige.analytics.matomo }}
<script type="text/javascript">
var _paq = window._paq = window._paq || [];

Loading…
Cancel
Save