mirror of
https://github.com/nunocoracao/blowfish.git
synced 2025-01-22 14:35:43 -06:00
seline && umami enableTrackEvent
This commit is contained in:
parent
bcc26c11b8
commit
91d24e626e
4 changed files with 10 additions and 6 deletions
|
@ -135,10 +135,11 @@ disableTextInHeader = false
|
|||
# websiteid = "ABC12345"
|
||||
# domain = "llama.yoursite.com"
|
||||
# dataDomains = "yoursite.com,yoursite2.com"
|
||||
# enableTrackEvent = false
|
||||
|
||||
[selineAnalytics]
|
||||
# token = "XXXXXX"
|
||||
# enableTrace = false
|
||||
# token = "XXXXXX"
|
||||
# enableTrackEvent = false
|
||||
|
||||
[buymeacoffee]
|
||||
# identifier = ""
|
||||
|
|
|
@ -134,10 +134,11 @@ smartTOCHideUnfocusedChildren = false
|
|||
# websiteid = "ABC12345"
|
||||
# domain = "llama.yoursite.com"
|
||||
# dataDomains = "yoursite.com,yoursite2.com"
|
||||
# enableTrackEvent = false
|
||||
|
||||
[selineAnalytics]
|
||||
# token = "XXXXXX"
|
||||
# enableTrace = false
|
||||
# token = "XXXXXX"
|
||||
# enableTrackEvent = false
|
||||
|
||||
[buymeacoffee]
|
||||
identifier = "nunocoracao"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<script async src="https://cdn.seline.so/seline.js" data-token="{{ site.Params.selineAnalytics.token }}" data-id="seline-script"></script>
|
||||
|
||||
{{ if .Site.Params.selineAnalytics.enableTrace | default false }}
|
||||
{{ if .Site.Params.selineAnalytics.enableTrackEvent | default false }}
|
||||
<script type="text/javascript">
|
||||
document.querySelector('script[data-id="seline-script"]')
|
||||
.addEventListener('load', function () {
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
</script>
|
||||
{{ end }}
|
||||
|
||||
{{ if .Site.Params.umamiAnalytics.enableTrackEvent | default false }}
|
||||
<script type="text/javascript">
|
||||
document.querySelector('script[data-id="umami-script"]')
|
||||
.addEventListener('load', function () {
|
||||
|
@ -19,3 +20,4 @@
|
|||
umami.track(type + ':' + title, {'url': url});
|
||||
});
|
||||
</script>
|
||||
{{ end }}
|
Loading…
Reference in a new issue