Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

Add account settings docs: how change password, update email and delete account

Blue Mousedd79b29bb32d
diff --git a/docs/accountsettings/2-factor-authentication.md b/docs/accountsettings/2-factor-authentication.md
new file mode 100644
index 000000000..d35153324
--- /dev/null
+++ b/docs/accountsettings/2-factor-authentication.md
@@ -0,0 +1,7 @@
+---
+title: Set up 2-factor authentication (2FA) for your account
+slug: /settings/2-factor-authentication
+---
+
+import useBaseUrl from '@docusaurus/useBaseUrl';
+
diff --git a/docs/accountsettings/change-email.md b/docs/accountsettings/change-email.md
new file mode 100644
index 000000000..f67ad2f4a
--- /dev/null
+++ b/docs/accountsettings/change-email.md
@@ -0,0 +1,16 @@
+---
+title: How to change your Swetrix account email
+slug: /settings/change-email
+---
+
+import useBaseUrl from '@docusaurus/useBaseUrl';
+
+To change your email, you need to log in to your account and go to the [account settings page](https://swetrix.com/user-settings).
+
+On the "Account" tab ("General settings" section), you will see the "Email" input field. There you will see your current email address.
+
+To change your email, enter your new email address and click on the "Update profile" button.
+
+To your old email address, you will receive an email with a link to confirm the change. After you click on the link, your email address will be updated.
+
+Please note that this only changes your email address in your Swetrix account. If you'd like to change your Paddle email address too (our payment provider, that sends you invoices), please [contact us](https://swetrix.com/contact) and we will help you with that.
diff --git a/docs/accountsettings/change-password.md b/docs/accountsettings/change-password.md
new file mode 100644
index 000000000..5d174593c
--- /dev/null
+++ b/docs/accountsettings/change-password.md
@@ -0,0 +1,28 @@
+---
+title: How to change or reset your Swetrix account password
+slug: /settings/change-password
+---
+
+import useBaseUrl from '@docusaurus/useBaseUrl';
+
+## How to change your password
+
+To change your password, you need to log in to your account and go to the [account settings page](https://swetrix.com/user-settings).
+
+On the "Account" tab, you will see the "General settings" section. Click on the "Change password" button and a form to change your password will appear.
+
+When you enter your new password, click on the "Update profile" button. This will log you out of all your devices and you will need to log in again with your new password.
+
+<img alt="Change password screen" src={useBaseUrl('img/accountsettings/change-password.png')} />
+
+## How to reset your password
+
+If you forgot your password, you can reset it by going to the [account recovery](https://swetrix.com/recovery) page.
+
+You will be asked to enter your email address and you will receive an email with a link to reset your password.
+
+When you click on the link in the email, you will be asked to enter a new password.
+
+When you reset your password, you will be logged out of all your devices and you will need to log in again with your new password.
+
+<img alt="Reset password screen" src={useBaseUrl('img/accountsettings/reset-password.png')} />
diff --git a/docs/accountsettings/delete-account.md b/docs/accountsettings/delete-account.md
new file mode 100644
index 000000000..91f79fd7d
--- /dev/null
+++ b/docs/accountsettings/delete-account.md
@@ -0,0 +1,18 @@
+---
+title: Delete your account
+slug: /settings/delete-account
+---
+
+import useBaseUrl from '@docusaurus/useBaseUrl';
+
+To delete your Swetrix account, you need to log in to your account and go to the [account settings page](https://swetrix.com/user-settings).
+
+Make sure you unsubscribed from the paid subscription if you have one. You can do this on the [billing page](https://swetrix.com/billing).
+
+Click on the "Account" tab and then down to the end of the page. There you will see the "Delete account" button that will allow you to delete your account.
+
+:::caution
+Deleting your account will delete all your data permanently and you will not be able to recover it.
+:::
+
+<img alt="Delete account screen" src={useBaseUrl('img/accountsettings/delete-account.png')} />
diff --git a/sidebars.js b/sidebars.js
index 7bce2ad07..312ff694f 100644
--- a/sidebars.js
+++ b/sidebars.js
@@ -31,6 +31,12 @@ module.exports = {
'sitesettings/get-traffic-alerts',
'sitesettings/reset-sites-data',
],
+ 'Account settings': [
+ // 'accountsettings/2-factor-authentication',
+ 'accountsettings/change-email',
+ 'accountsettings/change-password',
+ 'accountsettings/delete-account',
+ ],
'Billing & Subscription': [
'billing/exceeding-plan-limits',
'billing/update-subscription',
diff --git a/static/img/accountsettings/change-password.png b/static/img/accountsettings/change-password.png
new file mode 100644
index 000000000..67ba5aad7
Binary files /dev/null and b/static/img/accountsettings/change-password.png differ
diff --git a/static/img/accountsettings/delete-account.png b/static/img/accountsettings/delete-account.png
new file mode 100644
index 000000000..9ff8c5522
Binary files /dev/null and b/static/img/accountsettings/delete-account.png differ
diff --git a/static/img/accountsettings/reset-password.png b/static/img/accountsettings/reset-password.png
new file mode 100644
index 000000000..09e43c7a2
Binary files /dev/null and b/static/img/accountsettings/reset-password.png differ