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" name = "LinkedIn"
url = "" url = ""
[[analytics]] GoatCounterCode = ""
code = ""

View File

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

View File

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