Move analytics into separate files
This commit is contained in:
14
layouts/partials/paige/analytics/hotjar.html
Normal file
14
layouts/partials/paige/analytics/hotjar.html
Normal 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 }}
|
Reference in New Issue
Block a user