Agencies · Team and client roles
Team and client roles: everyone sees just their part.
Your staff work in your wp-admin with their own WordPress accounts. Each client’s people sign in to the portal as an admin or a viewer and see only their own websites. Everyone else gets a share link.
Your agency
In your wp-admin
Each client
In the client portal
Anyone else
With a link
Illustration of who sees what
Your own team
Staff use their own WordPress accounts.
People at your agency use Nahnu Analytics inside your wp-admin, with the WordPress accounts they already have.
- Administrators see everything.
- Other staff, such as editors or a custom role, see it once their role has the nahnu_analytics_manage capability.
- Add it with a role editor plugin, or one line of code.
- A few screens stay for administrators only, because they touch the server or the license.
// Let editors use Nahnu Analytics
get_role( 'editor' )->add_cap( 'nahnu_analytics_manage' );Administrators only
- Ways to install
- MCP
- License
- Move to a new site
These touch the server or the license.
Client roles
Two roles in the client portal.
Portal people are WordPress users with the Nahnu Analytics client role, tied to one client. They sign in with their email, never a username, and never see wp-admin.
Admin
- Sees the stats of their own websites
- Invites, removes and changes the role of people on their team
- Everything a viewer can do
Viewer
- Sees the stats of their own websites
- Gets email reports, and can turn them off
- Can’t invite anyone
From your side
Invite the client’s people from their page.
On a client’s page, Portal access lists who can sign in, with when each last did.
- Type their email, pick Admin or Viewer, and send the invite. The link works for 24 hours.
- Resend a lost invite, or remove someone’s access.
- View portal as the client to see exactly what they see.

From their side
Client admins manage their own team.
In the portal, under Settings › Team, a client’s admins invite colleagues, change their role or remove them, without asking you.
- Fewer “can you add my colleague?” emails.
- Their plan can limit how many people have access. Over the limit, they can’t invite more.
- Each person can turn email reports off for themselves.

Kept apart
One client never sees another.
Each portal person is tied to one client, and sees only that client’s websites. Clients never see the plugin in wp-admin, your other clients, your settings or your keys. Goal ideas and SQL query stay agency-only.
How do I give my staff access?
Give their WordPress role the nahnu_analytics_manage capability, with a role editor plugin or one line of code. Administrators have it already.
What can only administrators do?
Ways to install, MCP, License and Move to a new site, because they touch the server or the license.
What’s the difference between a client admin and a viewer?
Both see their own websites’ stats. An admin can also invite and remove people on their team.
Can a client see other clients?
No. Each portal person is tied to one client and sees only that client’s websites.
Can I limit how many people a client invites?
Yes. A plan can set how many people have portal access. Over the limit, they can’t invite more.