Guides & support » Account » Set up two-factor authentication (2FA)

Set up two-factor authentication (2FA)

Needed permissions: owner or manage

Needed permissions: Only account owners can manage 2FA requirements for all users or reset another user’s 2FA. You can manage your own 2FA without special permissions.

Two-factor authentication (2FA) adds an extra layer of security to your Piwik PRO account. When you sign in, you’ll enter your email address and password, followed by a six-digit code generated by an authenticator app.

In this article, we’ll show you how to set up 2FA, reset it, and turn it off if needed.

Before you start

Here are a few things to know before you start:

  • You’ll need an authenticator app on your phone or tablet, such as Authy, Duo Mobile, or LastPass Authenticator.
  • The app generates a six-digit code that usually expires after 30 seconds.
  • When you set up 2FA, you’ll receive backup codes. Store them in a safe place. You can use a backup code to sign in if you can’t access your authenticator app.
  • You can turn on 2FA for yourself. An account owner can also require 2FA for all users.

Turn on 2FA for yourself

If 2FA isn’t required for all users, you can turn it on for your own account.

To turn on 2FA, follow these steps:

1. Go to Menu > Your email address.

2. On the left, select Security.

3. In 2FA via a mobile app, click Turn on.

2FA via a mobile app

4. Scan the QR code with your authenticator app.

Setting up 2FA in Piwik PRO

Note: If you can’t scan the QR code, enter the secret key shown below it into your authenticator app.

5. Enter the six-digit code from the app in Piwik PRO.

Entering the 2FA verification code

6. Copy your backup codes and store them in a safe place. You won’t be able to view them again after leaving this screen.

Entering 2FA code in Piwik PRO

7. Click Done.

2FA is now turned on for your account. The next time you sign in, you’ll need your email address, password, and a code from your authenticator app.

Reset 2FA for yourself when it isn’t required for all users

If you’re switching to a new phone or tablet, reset 2FA and set it up on your new device before you stop using the old one. This will help you keep access to your Piwik PRO account.

Note: These steps apply when you’ve turned on 2FA for yourself and it isn’t required for all users. Resetting your 2FA invalidates your old backup codes. You’ll receive new ones when you set it up again.

To reset 2FA, follow these steps:

1. Have your old and new devices ready, and install an authenticator app on your new device.

2. Go to Menu > Your email address.

3. On the left, select Security.

Account security navigation in Piwik PRO

4. In 2FA via a mobile app, click Turn off.

turning off 2FA for account in Piwik PRO

5. Open the authenticator app on your old device and enter its six-digit code in Piwik PRO.

turn off 2fa by entering the code

Note: If you can’t access the app, you can use a backup code.

6. Click Turn off to confirm.

7. In 2FA via a mobile app, click Turn on to set up 2FA on your new device.

turning on 2fa for account in Piwik PRO

8. Scan the QR code with the authenticator app on your new device.

Setting up 2FA in Piwik PRO

Note: If you can’t scan the QR code, enter the secret key shown below it into the app.

9. Enter the six-digit code from the app in Piwik PRO.

Entering 2FA code in Piwik PRO

10. Copy your new backup codes and store them in a safe place. You won’t be able to view them again after leaving this screen.

Copying backoup codes for 2FA

11. Click Done.

2FA is now set up on your new device.

Reset 2FA for yourself when it’s required for all users

If your account owner requires 2FA for all users, you can reset your own 2FA from your security settings.

Note: Have your old and new devices ready before you start. Resetting 2FA invalidates your old backup codes. You’ll receive new ones when you set it up again.

To reset 2FA, follow these steps:

1. Go to Menu > Your email address.

2. On the left, select Security.

3. In Reset two-factor authentication, click Reset.

resetting 2fa for the account in Piwik PRO

4. In Confirm the current 2FA setup, enter the six-digit code from your current authenticator app.

5. Scan the QR code with the authenticator app on your new device.

Setting up 2FA in Piwik PRO

Note: If you can’t scan the QR code, enter the secret key shown below it into the app.

6. Enter the six-digit code from the new app in Piwik PRO.

Entering 2FA code in Piwik PRO

7. Copy your new backup codes and store them in a safe place. You won’t be able to view them again after leaving this screen.

Copying backoup codes for 2FA

8. Click Done.

2FA is now set up on your new device.

Turn off 2FA for yourself

If 2FA isn’t required for all users, you can turn it off for your account. However, we recommend keeping it on to protect your account.

To turn off 2FA, follow these steps:

1. Go to Menu > Your email address.

2. On the left, select Security.

3. In 2FA via a mobile app, click Turn off.

turning off 2FA for account in Piwik PRO

4. Enter the six-digit code from your authenticator app.

Note: If you can’t access the app, you can use a backup code.

5. Click Turn off to confirm.

You won’t need a 2FA code the next time you sign in.

Turn on 2FA for all users

Note: Only account owners can turn on 2FA for all users.

To require 2FA for everyone in your Piwik PRO account, follow these steps:

1. Go to Menu > Administration.

2. Navigate to Account.

3. On the left, select Account settings.

4. Turn on 2FA for all users.

2FA turned on for all in Piwik PRO

5. Click Turn on to confirm.

2FA is now required for all users. They’ll need their email address, password, and a six-digit code when signing in.

Note: Enabling this setting signs users out of Piwik PRO. Anyone who hasn’t set up 2FA will need to do so the next time they sign in.

Set up 2FA on your next sign-in

If an account owner requires 2FA for all users and you haven’t set it up yet, you’ll be prompted to set it up the next time you sign in.

To set up 2FA, follow these steps:

1. Install an authenticator app on your phone or tablet.

2. Sign in to Piwik PRO with your email address and password.

3. Scan the QR code with your authenticator app.

Login view for 2FA in Piwik PRO

Note: If you can’t scan the QR code, enter the secret key shown below it into your authenticator app.

4. Enter the six-digit code from the app in Piwik PRO.

Entering 2FA code in Piwik PRO

5. Copy your backup codes and store them in a safe place. You won’t be able to view them again after leaving this screen.

Copying backoup codes for 2FA

6. Click Done.

The next time you sign in, you’ll need your email address, password, and a code from your authenticator app.

Reset 2FA for another user

If someone loses access to their authenticator app or switches devices without resetting 2FA first, an account owner can reset it for them.

Note: Only account owners can reset another user’s 2FA. This invalidates that user’s existing backup codes. They’ll receive new ones when they set up 2FA again.

To reset 2FA for another user, follow these steps:

1. Go to Menu > Administration.

2. Navigate to Users.

3. On the left, select the user whose 2FA you want to reset.

4. Click Reset 2FA.

reset 2fa for user

5. Click Reset to confirm.

The user will need to set up 2FA again the next time they sign in.

Turn off 2FA for all users

Note: Only account owners can turn off the requirement to use 2FA for all users.

We recommend keeping 2FA enabled. If you need to remove the account-wide requirement, follow these steps:

1. Go to Menu > Administration.

2. Navigate to Account.

3. On the left, select Account settings.

4. Turn off 2FA for all users.

2fa turned off for all

5. Click Turn off to confirm.

Users will no longer be required to set up 2FA. However, anyone who already has 2FA enabled will continue to use it until they turn it off under Menu > Your email address > Security.

Troubleshooting

What if I can’t access my authenticator app or backup codes?

  • Ask an account owner to reset 2FA for you.
  • If you’re the only account owner, contact Piwik PRO support. Enterprise customers can use email or in-app chat. Business customers can use the community forum.