Public pages
Share a dashboard with anyone
A public page is a read-only dashboard anyone with the link can open, with no Viakite account. Use one to show traffic to investors, to a client, or to the world as an "open startup" page. You choose which reports it shows, and you can add a password, an expiry date and a monthly viewer limit. Public pages and share tokens are made in Analytics → Sharing.
Each public page opens on its own subdomain, for example https://acme-stats.p.vk.viabio.me, and also at /share/<subdomain> on the Viakite dashboard (https://dash.vk.viabio.me/share/acme-stats); both addresses work, and the Link column on the Sharing screen gives you one to copy. A page can also have a custom domain, free on every plan.
Make a public page
You need the analytics.share permission. Anyone with analytics.view can see the list. How many pages you can have depends on your plan: see Pages on your plan.
Start a new share
Open Analytics → Sharing and click New share. Leave Kind on Public page.
Name it
Title is the heading viewers see, such as "Acme stats". Subdomain is filled in from the title (3 to 40 lower-case letters, digits or dashes); it becomes the end of the page's link. Change it if you like; it must be free.
Pick the reports
Tick what viewers may see. A new page starts with Overview, Sources, Pages, Locations and Devices.
Report What viewers see Overview Totals against the period before, and traffic over time Realtime People online now and a live feed; not on pages with a password Sources Channels and referring sites Pages Most viewed, entry and exit pages Locations Countries, regions and cities Devices Device type, browser, operating system and screen size Goals Conversions and conversion rate More dimensions is optional: a report's own dimensions come with it, and here you can list others viewers may filter by, such as
utm_campaign, separated by commas.Set who can open it
Under Access, set any of these, or none for a page anyone with the link can open:
- Password: at least 8 characters. Viewers enter it once and their browser stays unlocked for 12 hours.
- Expires: a date. The page closes at the end of that day (UTC).
- Let search engines index it: off by default, so search engines are told not to list the page.
- Viewer limit a month: see Viewers and billing.
Create it and send the link
Click Create page. It appears in the list: use the copy button in the Link column, or Open page from the row's menu, to check it before you send it.
What viewers see and can do
A viewer sees the page's title, the reports you picked in a fixed order, and a small "Powered by Viakite" badge at the foot (unless your organization has the branding add-on). They can:
- change the date range, within the days your plan keeps: longer ranges show a lock and "This page shows the last 30 days." (on Free), and the numbers never reach further back;
- click a row in a list (a country, a source) to filter the page by it, but only on the dimensions the page allows.
They can't add other filters, open other reports, see settings, or change anything. Times are shown in the viewer's own time zone.
If the page has a password, they first see "This page has a password" and an Unlock button. A wrong password says so under the field. If the page has expired, it no longer opens.
Not here yet
Viewers can't add filters of their own beyond clicking rows.
Change, take down or protect a page
The Sharing list shows each share's Title, Link, Reports, Access (password, when it closes, the viewer limit, or "anyone with the link"), Domain and when it was Created. Click a title, or Edit in the row's menu, to change it.
- Change the password: type a new one and save. Everyone unlocked with the old one has to enter the new one.
- Remove the password: switch on Remove the password. Anyone with the link can open the page again.
- Take down: in the row's menu. The link stops working at once, and its custom domain with it. This can't be undone; make a new page to share again.
Custom domain
From a page's row menu, Custom domain lets you put the page on an address you own, such as stats.example.com. Custom domains are free on every plan, Free included. Each page can have one domain, and a domain can belong to only one page, in one organization.
- Type the domain and click Add domain.
- At your DNS provider, add the CNAME record shown: your domain, pointing to
cname.p.vk.viabio.me. Keep any proxy (the orange cloud on Cloudflare) off. - Click Check DNS, or wait: Viakite checks new domains every 10 minutes. DNS changes can take up to an hour; until the record is found, the drawer says what the domain points to at the last check.
A domain is in one of three states, shown in the Domain column and in the drawer:
| State | What it means |
|---|---|
Waiting for DNS (pending) | Added; the CNAME record hasn't been seen yet. If the record is already there when you add the domain, it skips straight to active. |
Active (active) | The CNAME points to Viakite. Viakite keeps checking it every hour. |
Failed (failed) | The record wasn't found within 72 hours of adding the domain, or it stopped pointing to Viakite for three checks in a row. Viakite keeps checking every few hours and makes it active again once the record is right, or click Check DNS. |
Remove domain in the drawer takes it off at once; the page keeps its own p.vk.viabio.me address.
Once a domain is active, its certificate is made on the first visit, which can take a few seconds.
PUT/v1/projects/{project}/shares/{share}/domain POST/v1/projects/{project}/shares/{share}/domain/verify DELETE/v1/projects/{project}/shares/{share}/domainShare tokens
A share token is the other Kind in New share. Instead of a page, you get an st_… key that reads only the reports you picked, meant for showing your numbers inside your own site. It has the same reports, extra dimensions, expiry and viewer limit as a page, but no subdomain, password or indexing.
The token's value is shown once, right after you create it. Copy it and keep it where your site's build can read it. The list then shows only its last characters. Revoke in the row's menu stops it at once.
You can also open a token as a page at /share/st_….
To show the numbers on your site, use the display components for React. You can also read the allowed reports with the token from the public endpoint:
POST/v1/public/{share}/queryPages on your plan
The card at the top of Analytics → Sharing shows your organization's public pages (in every project) against the pages your plan includes, and whether pages show the badge.
| Plan | Public pages | Beyond them |
|---|---|---|
| Free | 1 | No more: take one down, or upgrade |
| Pro | 3 | $5 / ₹299 a page a month, by the day |
| Business | 10 | $5 / ₹299 a page a month, by the day |
- Free: a second page is refused ("Your plan's public pages are all in use"), and New share starts on a share token, which doesn't count as a page. If an organization moves to Free with more pages, its oldest page keeps working and the others show "This page is paused" until you take some down.
- Paid plans: make as many pages as you need. Each page beyond the plan's costs its monthly price divided by 31 for every day (UTC) it is up, so a page kept a whole month costs at most $5 or ₹299, and one taken down after a week about a quarter of that.
- The badge: the Remove Viakite branding add-on (Pro and Business, in Settings → Billing and usage) takes "Powered by Viakite" off every page of the organization at once.
- Spend caps: a spend cap on Public pages or on the whole organization, set to stop, stops public pages when it is reached: no new page can be made, and new visitors see "Stats are paused" until the 1st. People who already opened a page this month keep seeing it. The card on Sharing says when this happens. See Spend caps.
Viewers and billing
Public pages are also billed by monthly viewers: each different person who opens one of your pages in a month. Viewers are counted with a hash that changes every month; no cookies are set on them. A page counts its visitor once when it opens, and its reports may be up to a minute old.
To cap a page, set Viewer limit a month, then choose what happens when it is reached:
- Keep showing: the page stays open and every viewer counts on the bill.
- Pause: new viewers see "Stats are paused" until next month, or until you raise the limit.
See Plans and billing for prices.
Through the API
Everything on the Sharing screen is also in the API:
GET/v1/projects/{project}/shares POST/v1/projects/{project}/shares PATCH/v1/projects/{project}/shares/{share} DELETE/v1/projects/{project}/shares/{share}