Parameterize UTC offset for Counter analytics

master
Sean Collins 2 years ago committed by Will Faught
parent 5c3ac08fc1
commit e2062f37ee

@ -178,6 +178,7 @@ paige:
account_id: "" account_id: ""
counter: # See https://counter.dev counter: # See https://counter.dev
account_id: "" account_id: ""
utc_offset: "" # GMT +/- local timezone
fathom: # See https://usefathom.com fathom: # See https://usefathom.com
account_id: "" account_id: ""
finteza: # See https://finteza.com finteza: # See https://finteza.com

@ -1,5 +1,5 @@
{{ $page := . }} {{ $page := . }}
{{ with $page.Param "paige.analytics.counter" }} {{ with $page.Param "paige.analytics.counter" }}
<script src="https://cdn.counter.dev/script.js" data-id="{{ .account_id }}" data-utcoffset="-7"></script> <script src="https://cdn.counter.dev/script.js" data-id="{{ .account_id }}" data-utcoffset="{{ .utc_offset }}"></script>
{{ end }} {{ end }}

Loading…
Cancel
Save