Complete These Tutorials First
Umami is an open source web analytics platform that shows how many people visit your website, which pages they read, and where they come from. It works without cookies and does not store personal data. This tutorial connects Umami to a WordPress website, so you can see your first real visitors in a few minutes.
The screenshots in this tutorial come from Cool Breeze AC Care, the fictional company website built in How to Launch a Company Profile Website with WordPress.
To get Umami running quickly, this tutorial uses the Umami app from the CloudRaya Marketplace. A Marketplace app is ready to run. So you do not need to create a server or install anything yourself, CloudRaya runs it for you and gives it an HTTPS address, and you can move to a bigger package later without deleting the app. If you prefer to install Umami yourself, follow the official installation guide and continue from Step 2.
Prerequisites
- Either an existing Umami installation, or a CloudRaya account with enough Cloud Credit to deploy it from the Marketplace. Marketplace apps are billed monthly, based on the package size you choose, and you cannot pay for them with CloudRaya Coins. See How to Top Up Cloud Credit and Serverless Containers: Deployment for details.
- A live WordPress website with administrator access. If you do not have one yet, follow How to Launch a Company Profile Website with WordPress first.
- An authenticator app on your phone, such as Google Authenticator or Authy, for Step 3.
Step 1: Get Umami Running
If you have not installed Umami yet, install it first by following the official Umami installation guide, then continue with Step 2.
If you need a quick solution with a premade app, deploy it from the CloudRaya Marketplace instead. This is the option used in the rest of this tutorial. The app already includes its own database, so there is no database to create or connect.
- In the CloudRaya dashboard, under Other Product, click Marketplace.
- Search for Umami, then click View Details.
- Click Deploy Now.
- Keep the latest Application Version, and enter a unique Application Name, for example
website-analytics. - Choose a Deployment Package. The smallest package is enough for a company website, up to about 100,000 page views per month. You can move to a bigger package later without deleting the app, but you cannot move to a smaller one.
- Click Deploy App. You are redirected to My Apps.
Wait until the status of the app changes to Running.
Step 2: Log In and Change the Default Password
Every new Umami app starts with the same username and password, so anyone who finds your address could log in. Change the password now, before you do anything else.
- In My Apps, click the app name and open the address of your app in a new tab. It looks like
https://<app-id>.cloudraya.app. - Log in with the username
adminand the passwordumami. - Click admin at the bottom left of the sidebar, then click Settings.
- Click Profile, then click Change password.
- Enter
umamias the Current password, enter a new strong password in New password and Confirm password, and click Save.
Umami signs you out after the password changes. Log in again with your new password.

Step 3: Turn On Two-Factor Authentication
Your analytics dashboard is open to the internet, so protect it with a second login step.
- Click admin at the bottom left of the sidebar, then click Settings.
- Click Security, then turn on Enable 2FA.
- Scan the QR code with your authenticator app, or enter the secret key shown next to it.
- Enter the 6-digit code from your authenticator app, and click Confirm.
- Save the backup codes that Umami shows you in a safe place, such as a password manager. Each code works only once, and you need one if you lose access to your authenticator app.
The status changes to Active.

Step 4: Add Your Website to Umami
- Click Websites in the sidebar, then click Add website.
- Enter your company name as the Name.
- Enter the address of your website as the Domain, without
https://, for exampleyourdomain.com. - Click Save. Your website appears in the list.
- Click the edit icon at the end of the row of your website.
- In the Tracking code section, click the copy icon.

Step 5: Add the Tracking Code to WordPress
Umami counts a visit when a page loads this code, so it must be on every page of your website. The footer appears on every page, which makes it the simplest place to add the code. You do not need a plugin.
- In your WordPress dashboard, go to Appearance, then Editor, then Patterns.
- Click All template parts, then click the template part named Footer.
- Click the + icon at the top left of the editor, search for Custom HTML, and drag the block to the very bottom of the footer.
- In the block, click Edit HTML.
- Paste the tracking code into the HTML tab, and click Update.
- Click Save. If a panel opens, check that Footer is selected and click Save again.

The block shows nothing on the page, and that is expected. The code runs in the background and does not change how your website looks.
The Umami dashboard suggests placing the code in the head section of your HTML. WordPress block themes have no field for that, and the code also works from the footer. If your website is not built on WordPress, paste the code inside the <head> tag of your pages instead.Step 6: Read Your First Numbers
- Open your website on your phone, using mobile data, and visit two or three pages.
- In Umami, click Websites, then click the name of your website. The Overview page opens, and shows 1 Online while someone is on your website.

The top of the page shows the numbers you will check most often:
- Visitors: the number of different people.
- Visits: the number of separate sessions. One visitor can come back several times.
- Views: the number of pages opened.
- Bounce rate: the share of visits that ended after one page.
- Visit duration: the average time of a visit.
Below them, Pages shows what people read, Sources shows where they came from, and Environment and Location show their browsers, devices, and countries.
You may see a path named srcdoc in the Pages list. It comes from the preview in the WordPress code editor, not from a real visitor.
Step 7: Exclude Your Own Visits (Optional)
Your own visits make the numbers look higher than they are. If your office has a fixed public IP address, tell Umami to ignore it. Adding a variable redeploys the app, so your dashboard is unavailable for a few minutes.
- In CloudRaya Marketplace Panel, under My Apps, click the app name and open the Environment tab.
- Click Add Variable, and select
umamias the App Container. - Enter
IGNORE_IPas the Key and your public IP address as the Value, then confirm. To ignore several addresses, separate them with commas. To find your IP address, search for "what is my IP" from your office network, with any VPN turned off. - Wait until the status of the app changes from Pending back to Running.
Your past data and your settings stay in place. See Serverless Containers: Configuration & Environment Variables for details.
Verification
- You can no longer log in with the password
umami. - Your login asks for a code from your authenticator app.
- The Overview page of your website shows at least one visitor and one view after you open your website on your phone.
- Your website looks the same as before.
Troubleshooting
The app stays in deployment or shows Failed: give it a few minutes, as the first start can take a while. If the app still does not come up, email our support team and include the app name.
No visitors appear: open your website, view the page source, and search for script.js. If it is missing, check that you saved the Footer in Step 5. If it is there, try another device or browser.
Some visits are missing: some ad blockers block the default script.js file name. Add the variable TRACKER_SCRIPT_NAME to the umami container in the Environment tab, with a name of your choice as the value, for example mydomainstats. Avoid very short names. After the app returns to Running, copy the tracking code from Umami again and replace it in the Custom HTML block.
You lost access to your authenticator app: log in with one of the backup codes you saved in Step 3. Each code works only once.
You forgot your password, or you lost both your authenticator app and your backup codes: reset your account from the panel. Your websites and their data stay in place.
- In CloudRaya Marketplace Panel, under My Apps, click the app name and open the Environment tab.
- To set a new password, click Add Variable, select
umamias the App Container, enterRESET_ADMIN_PASSWORDas the Key and a new password of at least 8 characters as the Value, then confirm. - To turn off two-factor authentication, add another variable to the
umamicontainer withRESET_ADMIN_2FAas the Key andtrueas the Value. - Wait until the status of the app changes back to Running, and log in with your new password.
- Delete the variables you added, wait for Running again, and turn two-factor authentication back on as in Step 3. Save the new backup codes.
This resets the admin account you used on your first login. If another person on your team is also an admin, they can reset your password or two-factor authentication instead, from Admin, then Users.
Next Steps
- Get an alert when your website goes down. Follow How to Monitor Your Website with Uptime Kuma.
- Give your dashboard a cleaner address, such as
analytics.yourdomain.com. See Serverless Containers: Domain & Access Management. - Explore what else Umami can track, such as custom events and funnels, in the official Umami documentation.
- Explore other ready-to-run apps for your business in the Marketplace Tutorials.
Conclusion
Your website now reports its visitors to your own Umami dashboard, protected by a strong password and two-factor authentication, so you can see what people read without giving their data to a third party.
