mirror of
https://github.com/13hannes11/hugo-coder-timeline.git
synced 2024-09-04 00:50:58 +02:00
Add goatcounter analytics support (#430)
* adding goatcounter analytics support * Update CONTRIBUTORS.md
This commit is contained in:
@@ -79,4 +79,5 @@
|
|||||||
- [Dave Rolsky](https://github.com/autarch)
|
- [Dave Rolsky](https://github.com/autarch)
|
||||||
- [Joseph Sanders](https://github.com/jls83)
|
- [Joseph Sanders](https://github.com/jls83)
|
||||||
- [Rabin Adhikari](https://github.com/rabinadk1/)
|
- [Rabin Adhikari](https://github.com/rabinadk1/)
|
||||||
- [Hussaini Zulkifli](https://github.com/hussaini/)
|
- [Hussaini Zulkifli](https://github.com/hussaini/)
|
||||||
|
- [Ellison Leão](https://github.com/ellisonleao)
|
||||||
|
|||||||
@@ -62,13 +62,17 @@ disqusShortname = "yourdiscussshortname"
|
|||||||
siteID = "ABCDE"
|
siteID = "ABCDE"
|
||||||
# Default value is cdn.usefathom.com, overwrite this if you are self-hosting
|
# Default value is cdn.usefathom.com, overwrite this if you are self-hosting
|
||||||
serverURL = "analytics.example.com"
|
serverURL = "analytics.example.com"
|
||||||
|
|
||||||
# If you want to use plausible(https://plausible.io) for analytics, add this section
|
# If you want to use plausible(https://plausible.io) for analytics, add this section
|
||||||
[params.plausibleAnalytics]
|
[params.plausibleAnalytics]
|
||||||
domain = "example.com"
|
domain = "example.com"
|
||||||
# Default value is plausible.io, overwrite this if you are self-hosting or using a custom domain
|
# Default value is plausible.io, overwrite this if you are self-hosting or using a custom domain
|
||||||
serverURL = "analytics.example.com"
|
serverURL = "analytics.example.com"
|
||||||
|
|
||||||
|
# If you want to use goatcounter(https://goatcounter.com) for analytics, add this section
|
||||||
|
[params.goatCounter]
|
||||||
|
code = "code"
|
||||||
|
|
||||||
[taxonomies]
|
[taxonomies]
|
||||||
category = "categories"
|
category = "categories"
|
||||||
series = "series"
|
series = "series"
|
||||||
|
|||||||
@@ -131,6 +131,9 @@
|
|||||||
{{- partial "analytics/plausible" . -}}
|
{{- partial "analytics/plausible" . -}}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
{{ if and .Site.Params.goatCounter .Site.Params.goatCounter.code }}
|
||||||
|
{{- partial "analytics/goatcounter" . -}}
|
||||||
|
{{ end }}
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
2
layouts/partials/analytics/goatcounter.html
Normal file
2
layouts/partials/analytics/goatcounter.html
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
<script data-goatcounter="https://{{ $.Site.Params.goatCounter.code }}.goatcounter.com/count"
|
||||||
|
async src="//gc.zgo.at/count.js"></script>
|
||||||
Reference in New Issue
Block a user