chore: remove plausible analytics entirely

This commit is contained in:
spiral 2023-01-15 17:09:13 +00:00
parent bf3168460b
commit 8432f00996
5 changed files with 1 additions and 23 deletions

View File

@ -76,7 +76,6 @@ module.exports = {
plugins: [ plugins: [
'@vuepress/plugin-back-to-top', '@vuepress/plugin-back-to-top',
["plausible-analytics", { domain: 'plausible.pluralkit.me' }],
["vuepress-plugin-clean-urls", { normalSuffix: "/" }], ["vuepress-plugin-clean-urls", { normalSuffix: "/" }],
], ],
} }

View File

@ -30,11 +30,3 @@ You can export your system information using the `pk;export` command. This does
You can delete your information using `pk;system delete`. This will delete all system information and associated members, switches, and messages. This will not delete your information from the database backups. Contact me if you want that wiped, too. You can delete your information using `pk;system delete`. This will delete all system information and associated members, switches, and messages. This will not delete your information from the database backups. Contact me if you want that wiped, too.
The bot is [open-source](https://github.com/PluralKit/PluralKit). While I can't *prove* this is the code that's running on the production server... it is, promise. The bot is [open-source](https://github.com/PluralKit/PluralKit). While I can't *prove* this is the code that's running on the production server... it is, promise.
## Website
We use [Plausible](https://plausible.io) for website analytics. The analytics are publicly accessible at [https://plausible.pluralkit.me/pluralkit.me](https://plausible.pluralkit.me/pluralkit.me).
In short, Plausible logs information related to *your current visit on this website*, not information *about you*. A full list of everything that Plausible logs can be found on their [data policy](https://plausible.io/data-policy) page.
If you do not wish for your visits to be included in the analytics, please follow [Plausible's opt-out guide](https://plausible.io/docs/excluding). <noscript>*JavaScript is disabled in this browser, which automatically blocks Plausible Analytics.*</noscript>

View File

@ -12,8 +12,7 @@
"markdown-it-custom-header-link": "^1.0.5", "markdown-it-custom-header-link": "^1.0.5",
"vuepress": "1.8.2", "vuepress": "1.8.2",
"vuepress-plugin-clean-urls": "1.1.2", "vuepress-plugin-clean-urls": "1.1.2",
"vuepress-plugin-dehydrate": "1.1.5", "vuepress-plugin-dehydrate": "1.1.5"
"vuepress-plugin-plausible-analytics": "^0.2.1"
}, },
"dependencies": { "dependencies": {
"vuepress-theme-default-prefers-color-scheme": "2.0.0" "vuepress-theme-default-prefers-color-scheme": "2.0.0"

View File

@ -7680,11 +7680,6 @@ vuepress-plugin-dehydrate@1.1.5:
dependencies: dependencies:
"@vuepress/shared-utils" "^1.2.0" "@vuepress/shared-utils" "^1.2.0"
vuepress-plugin-plausible-analytics@^0.2.1:
version "0.2.1"
resolved "https://registry.yarnpkg.com/vuepress-plugin-plausible-analytics/-/vuepress-plugin-plausible-analytics-0.2.1.tgz#d6733b17305bd37d5b9797460c8a8d179b79fc2d"
integrity sha512-e4ZLAFEbfhjpHv08+QqO1lMZeDa/kcg71yLtzG1LCre7sfihQyuV82ZFU3yGflqDgimcfv2AkZe24fIdoRqYmg==
vuepress-plugin-smooth-scroll@^0.0.3: vuepress-plugin-smooth-scroll@^0.0.3:
version "0.0.3" version "0.0.3"
resolved "https://registry.yarnpkg.com/vuepress-plugin-smooth-scroll/-/vuepress-plugin-smooth-scroll-0.0.3.tgz#6eff2d4c186cca917cc9f7df2b0af7de7c8c6438" resolved "https://registry.yarnpkg.com/vuepress-plugin-smooth-scroll/-/vuepress-plugin-smooth-scroll-0.0.3.tgz#6eff2d4c186cca917cc9f7df2b0af7de7c8c6438"

View File

@ -47,13 +47,6 @@ func init() {
type ProxyHandler struct{} type ProxyHandler struct{}
func (p ProxyHandler) ServeHTTP(rw http.ResponseWriter, r *http.Request) { func (p ProxyHandler) ServeHTTP(rw http.ResponseWriter, r *http.Request) {
// redirect to plausible through fly-proxy
if r.Host == "plausible.pluralkit.me" {
rw.Header().Add("fly-replay", "app=pluralkit-analytics")
rw.WriteHeader(200)
return
}
remote, ok := remotes[r.Host] remote, ok := remotes[r.Host]
if !ok { if !ok {
// unknown domains redirect to landing page // unknown domains redirect to landing page