viakite
Dashboard

Guides/Use cases/Agencies and many sites

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

FeatureWhat it doesGuide
ProjectsOne per client site or app, with its own data, key, settings, time zone and currencyProjects
Members and invitesYour team and your clients' people, free on every planMembers and invites
Roles and groupsViewer for clients, Member for your team, custom roles, chosen projects per personRoles and groups
Email reportsA weekly or monthly summary to up to 50 addresses per project, no account neededEmail reports
Public pagesA live page per client, on their own domain if they likePublic pages
API keys per projectSecret keys limited to the projects they may reachAPI keys

Set it up

  1. 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.html
    1<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:

    terminal
    1curl -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"}'
  2. 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_ids through the API:

    terminal
    1curl -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_…"] }]}'
  3. 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.

  4. 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.com with a CNAME record to cname.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_ids through 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.