Importing a tracking plan from CSV
If your tracking plan already lives in a spreadsheet, you can bring it into tripl as a CSV file instead of typing it in. Save the sheet as CSV (comma, semicolon or tab separated all work), then go to More › Plan › Event types and press Import CSV. The button is there for editors and above; viewers do not see it, and the API refuses both the preview and the import for them.
The dialog has a Download template CSV link with the columns below and a few example rows.
Columns
| Column | Required | What it does |
|---|---|---|
event | yes | The event name, as it lands in your warehouse. |
event_type | yes | The event type. An existing type is matched by its name, then by its display name; a new one is created. |
description | no | The event's description. |
owner | no | The email of the event's owner. It must belong to a member of the project's organization. |
property | no | A property of the event. An existing property is matched by name; a new one needs a name of lowercase letters, digits and underscores. |
property_type | no | string, number, boolean, date, datetime, json, string_array or number_array. New properties without a type are string. |
required | no | true or false (yes/no also work): whether the event must send the property. |
The first line names the columns. event name, name, type, owner email
and property name are read as the matching column, so a spreadsheet's own
header often works as it is. A byte-order mark at the start of the file is
ignored.
One row is one event, or one property of an event: repeat the event's columns on each of its property rows.
event,event_type,description,owner,property,property_type,required
signup_completed,Screen,The account was created,,plan_id,string,true
signup_completed,Screen,,,referrer,string,false
checkout_started,Action,The checkout page was opened,,,,
Preview first
Picking a file shows a preview and writes nothing. It counts what the import would create, update and leave alone because it is already in the tracking plan, lists each change with the line it comes from, and lists every row error with its line number. Fix the errors in the file and pick it again.
Apply import is available only when the file has no errors and would change something. The import is all or nothing: it writes the whole file in one go, and a file with any error writes nothing.
What the import changes, and what it leaves alone
- A blank cell never clears anything. It means "the file does not say", so an existing description, owner or required flag stays as it is.
- Two rows that disagree about the same thing (two descriptions for one event, two types for one property) are a row error rather than "the last one wins".
- The import never changes a property's type. A row that gives an existing property a different type is a row error; change the type in the app.
- An event type whose events need field values (a required field, or a scan naming rule) cannot get new events from a CSV row, which cannot set fields. Those rows are errors that point you to the app.
- New events are created as drafts, with a "created" entry in their history, and their owner is subscribed to them like for an event made in the app.
On a plan branch, the import writes to that branch, so you can review the result and merge it like any other branch change.
Limits
A file can be up to 2 MB and 5,000 rows. A larger plan can be split into several files and imported one by one: a later file matches what an earlier one created.
Exporting to CSV
The Events page's More › Export CSV writes a report with other columns, so
it cannot be imported again. Cells that
start with =, +, - or @ are written so that a spreadsheet shows them as
text rather than running them as formulas.