Add GoatCounter

This commit is contained in:
invinciblycool 2020-06-18 16:46:10 +05:30
parent 7dd9e4b11f
commit 22f04c785f
3 changed files with 8 additions and 5 deletions

View File

@ -27,5 +27,4 @@ url = ""
name = "LinkedIn"
url = ""
[[analytics]]
code = ""
GoatCounterCode = ""

View File

@ -10,6 +10,7 @@ Simple, text-focussed and minimal personal portfolio theme based on https://gith
* Easy to personalize
* RSS feed
* Dark mode (taken from https://www.gwern.net/ as it is.)
* GoatCounter counts(analytics). Know more about GoatCounter [here](https://goatcounter.com)
## Installation
@ -65,6 +66,9 @@ url = ""
name = "LinkedIn"
url = ""
# This is the endpoint under the integrations section of the Site Code
GoatCounterCode = ""
```
## Posts

View File

@ -42,8 +42,8 @@
<h3><a href="posts/">View all posts</a></h3>
</div>
{{ if ne .Site.Data.personalize.analytics.code ""}}
<script data-goatcounter="{{ .Site.Data.personalize.analytics.code }}" async src="//gc.zgo.at/count.js"></script>
{{ if ne .Site.Data.personalize.GoatCounterCode ""}}
<script data-goatcounter="{{ .Site.Data.personalize.GoatCounterCode }}" async src="//gc.zgo.at/count.js"></script>
{{ end }}
</body>