feat: switch from GA to Plausible for analytics
This commit is contained in:
parent
e30987445a
commit
2b0b80529a
@ -1,6 +1,5 @@
|
|||||||
baseURL = "https://quartz.jzhao.xyz/"
|
baseURL = "https://quartz.jzhao.xyz/"
|
||||||
languageCode = "en-us"
|
languageCode = "en-us"
|
||||||
googleAnalytics = "G-XYFD95KB4J"
|
|
||||||
relativeURLs = false
|
relativeURLs = false
|
||||||
disablePathToLower = true
|
disablePathToLower = true
|
||||||
ignoreFiles = [
|
ignoreFiles = [
|
||||||
|
@ -52,8 +52,13 @@ You probably forgot to include front matter in your Markdown files. You can eith
|
|||||||
### My custom domain isn't working!
|
### My custom domain isn't working!
|
||||||
Walk through the steps in [the hosting guide](notes/hosting.md) again. Make sure you wait 30 min to 1 hour for changes to take effect.
|
Walk through the steps in [the hosting guide](notes/hosting.md) again. Make sure you wait 30 min to 1 hour for changes to take effect.
|
||||||
|
|
||||||
### How do I setup Google Analytics?
|
### How do I setup analytics?
|
||||||
You can edit it in `config.toml` and either use a V3 (UA-) or V4 (G-) tag.
|
Quartz by default uses [Plausible](https://plausible.io/) for analytics.
|
||||||
|
|
||||||
|
If you would prefer to use Google Analytics, you can follow this [guide in the Hugo documentation](https://gohugo.io/templates/internal/#google-analytics).
|
||||||
|
|
||||||
|
Alternatively, you can also import your Google Analytics data into Plausible by [following this guide](https://plausible.io/docs/google-analytics-import).
|
||||||
|
|
||||||
|
|
||||||
### How do I change the content on the home page?
|
### How do I change the content on the home page?
|
||||||
To edit the main home page, open `/content/_index.md`.
|
To edit the main home page, open `/content/_index.md`.
|
||||||
@ -78,4 +83,4 @@ Not out of the box. You could probably make it work by editing `/layouts/_defaul
|
|||||||
## Still Stuck?
|
## Still Stuck?
|
||||||
Quartz isn't perfect! If you're still having troubles, file an issue in the GitHub repo with as much information as you can reasonably provide. Alternatively, you can message me on [Twitter](https://twitter.com/_jzhao) and I'll try to get back to you as soon as I can.
|
Quartz isn't perfect! If you're still having troubles, file an issue in the GitHub repo with as much information as you can reasonably provide. Alternatively, you can message me on [Twitter](https://twitter.com/_jzhao) and I'll try to get back to you as soon as I can.
|
||||||
|
|
||||||
🐛 [Submit an Issue](https://github.com/jackyzha0/quartz/issues)
|
🐛 [Submit an Issue](https://github.com/jackyzha0/quartz/issues)
|
||||||
|
@ -205,5 +205,6 @@
|
|||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
{{ $trimmedURL := trim (index (split .Site.BaseURL "://") 1) "/" }}
|
||||||
|
<script defer data-domain="{{$trimmedURL}}" src="https://plausible.io/js/script.js"></script>
|
||||||
</head>
|
</head>
|
||||||
{{ template "_internal/google_analytics.html" . }}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user