viakite
Dashboard

Guides/Team/Projects

Projects

One project per app or site

A project is one website or app. Its data, its install, its goals and funnels, and its settings are kept apart from every other project, while the plan, members and keys belong to the organization above it. Make one project per app or site, and a separate one for staging if you want its traffic out of your real numbers.

Create a project

Your first project is made right after your organization, during sign-up. To add another, open the project switcher at the top of the rail and choose Create project. Both ask the same four things:

StepWhat it sets
NameWhat your team calls it, up to 100 characters
Where does it run?The platform: web, ios, android, react_native, flutter or other. The install steps that follow match it
Which time zone?Days in your reports start at midnight here
Which currency?Revenue is shown in it

Creating the project also makes its live public key, named after the project ("Shop website"), when you have the keys.create permission, and emails you the key, the script tag to paste and a link to the project's Install screen. Then the dashboard opens Analytics → Install with that key filled in. Creating a project needs the projects.create permission. On Free an organization has 1 project; a second answers project_limit (402).

Through the API, the same fields are name, platform, timezone (an IANA name such as Asia/Kolkata, default UTC) and currency (a three-letter code such as INR, default USD):

POST/v1/orgs/{org}/projects
terminal
1curl -X POST https://api.vk.viabio.me/v1/orgs/org_…/projects \
2 -H "Authorization: Bearer sk_live_us_…" \
3 -H "Content-Type: application/json" \
4 -d '{"name": "Shop app", "platform": "web", "timezone": "Asia/Kolkata", "currency": "INR"}'

The answer is the project, with its id (prj_…), its region and the endpoints of that region: api, live and ingest.

Check the install

A project knows when its first event arrived. The install screen shows it as it happens, and the API gives it as first_event_at (null until then):

GET/v1/projects/{project}/install-status

Change a project

In the dashboard, open Settings → General, change the Name, Time zone or Currency, and choose Save. Changing them needs the projects.settings permission; without it the page shows the values but no Save. The page also shows the Project ID (prj_…) for the API and the SDKs.

Through the API, send only the fields you change; the others stay as they are.

PATCH/v1/projects/{project}
terminal
1curl -X PATCH https://api.vk.viabio.me/v1/projects/prj_… \
2 -H "Authorization: Bearer sk_live_us_…" \
3 -H "Content-Type: application/json" \
4 -d '{"timezone": "Europe/London"}'

Analytics' own settings for a project (allowed hostnames, excluded IPs and paths, Do Not Track) are in Analytics settings.

Delete and restore a project

Deleting a project needs projects.delete. It stops showing in the organization at once, and you have 30 days to restore it.

  • Delete: Settings → General → Delete project, then type the project's name. The card that follows offers Undo delete until you leave the page.
  • Restore: Settings → Organization → Deleted projects lists the projects deleted in the last 30 days with the days left. Restore brings one back. On Free, a project can't be restored while another one exists (project_limit).
DELETE/v1/projects/{project} GET/v1/orgs/{org}/deleted-projects POST/v1/projects/{project}/restore

After 30 days, a scheduled job removes the deleted project and all its data for good.

Delete one person's data

To answer a privacy request, you can ask Viakite to delete one visitor's or user's events from a project. In the dashboard: Settings → Privacy requests → New request, with the visitor ID (a whole number), the user ID (the one you passed to identify) or both. It needs projects.settings, and shows in the audit log as deletion_request.created.

The request is saved as pending. A scheduled job picks it up within a few minutes and deletes:

  • every event of that visitor ID in the project,
  • every event of that user ID, and the anonymous events of the visitors identified as that user.

The request then shows done with the time it finished. Deleting can't be undone. The page lists every request and refreshes while one is still pending.

POST/v1/projects/{project}/deletion-requests GET/v1/projects/{project}/deletion-requests

Next steps