Agencies and many sites
A project per client, with their own reports and pages
You build and run sites for clients, or your company has many sites and apps. You want each one's numbers kept apart, each client to see only their own, a summary in their inbox, and maybe a live page on their own domain, all from one account and one bill.
Who it's for
Agencies, freelancers and studios with several clients, and companies with many brands or sites.
What you get
| Feature | What it does | Guide |
|---|---|---|
| Projects | One per client site or app, with its own data, key, settings, time zone and currency | Projects |
| Members and invites | Your team and your clients' people, free on every plan | Members and invites |
| Roles and groups | Viewer for clients, Member for your team, custom roles, chosen projects per person | Roles and groups |
| Email reports | A weekly or monthly summary to up to 50 addresses per project, no account needed | Email reports |
| Public pages | A live page per client, on their own domain if they like | Public pages |
| API keys per project | Secret keys limited to the projects they may reach | API keys |
Set it up
Make a project per client
Open the project switcher at the top of the rail and choose Create project: name it after the client, and pick the platform, time zone and currency. The dashboard then opens Analytics → Install with the new project's key. Add that snippet to the client's site:
client-site/index.html1<script defer src="https://us.api.vk.viabio.me/v1/a.js" data-project="pk_live_us_…"></script>Or from a script, with a secret key:
terminal1curl -X POST https://api.vk.viabio.me/v1/orgs/org_…/projects \2-H "Authorization: Bearer $VIAKITE_SECRET_KEY" \3-H "Content-Type: application/json" \4-d '{"name": "Client: Acme", "platform": "web", "timezone": "Asia/Kolkata", "currency": "INR"}'Invite your team and your clients
In Settings → Members, choose Invite, add the emails and pick a role: Member for your team, Viewer for clients (they can view data, alerts and members, and change nothing).
The dashboard gives a role for the whole organization. To limit a client to their own project, set the role with
project_idsthrough the API:terminal1curl -X PATCH https://api.vk.viabio.me/v1/orgs/org_…/members/mem_… \2-H "Authorization: Bearer $VIAKITE_SECRET_KEY" \3-H "Content-Type: application/json" \4-d '{"roles": [{ "role": "viewer", "project_ids": ["prj_…"] }]}'Send each client a report
In each project, open Analytics → Analytics settings → Email reports, switch on Weekly report or Monthly report, and add the client's addresses. They don't need an account.
Give each client a live page
In the client's project, Analytics → Sharing → New share → Public page, pick the reports, and add a password if they want one. From the row's menu, Custom domain puts it on
stats.client.comwith a CNAME record tocname.p.vk.viabio.me, free on every plan.
What to watch
- Projects on your plan. Free has 1 project; Pro and Business have as many as you need. See Plans and billing.
- Usage is the organization's. Events, public pages and viewers of every project add up on one bill; Pro includes 5M events and 3 public pages, Business 50M and 10. Spend caps can stop a product when it reaches a limit.
- Project-scoped roles are API-only. The dashboard always gives roles for the whole organization; pick projects with
project_idsthrough the API. - The badge. Public pages show "Powered by Viakite"; the Remove Viakite branding add-on (Pro and Business) takes it off every page.
- Members are free: 5 on Free, unlimited on Pro and above.