Move analytics into separate files

This commit is contained in:
Will Faught
2023-02-09 21:48:53 -08:00
parent 6da99ac718
commit eb4e74fb0c
13 changed files with 135 additions and 99 deletions

View File

@@ -0,0 +1,14 @@
{{ $page := . }}
{{ with $page.Param "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 | safeJS }}",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>
{{ end }}