Analytics
Server events and CSV import
Send events from your backend, or upload spreadsheets of offline activity like letters mailed.
From your server
Create a Server source and post batches of up to 500 messages (512 KB) to the collect API with one of its keys: the test key while developing, the live key in production (keep it in an environment variable, e.g. INCREMENTALITY_WRITE_KEY). Give each message a messageId, such as an order number: retries with the same ID are never counted twice.
curl https://incrementality.ai/api/v1/collect \
-H "Authorization: Bearer $INCREMENTALITY_WRITE_KEY" \
-H "Content-Type: application/json" \
-d '{"batch":[{"type":"track","event":"order_completed","userId":"user_123","messageId":"order_1001",
"properties":{"revenue":49,"currency":"USD"},"increment":{"lifetime_orders":1}}]}'The response counts what was accepted, duplicated, suppressed (people who asked to be deleted) and rejected, with a reason for each rejection. See the collect API reference.
Identifying people
userId: your own ID for a logged-in person.anonymousId: the pixel's visitor ID.externalId: { kind, value }: any other ID, such ascustom:crm_id, oremail_sha256(the SHA-256 of the lowercased address).
Messages join everyone already known by any of their IDs, so offline activity lands on the right person.
Importing a CSV
- 1
Create a CSV import source
In Sources, choose New source and CSV import. - 2
Start from a template
Template: events and Template: traits download a CSV built from your project: your own event names, their properties and your traits, so the file matches what you already send. - 3
Choose the file
A header row, then one event (or one person, for traits) per row: up to 50,000 rows and 10 MB. - 4
Map the columns
The event name (the same for every row, likeletter_mailed, or from a column), who it was (user ID, email, an anonymous ID or another ID), when (dates like2026-09-01,9/1/2026, ISO times or Unix time), and which columns to keep as properties. Numbers and true/false are recognised. - 5
Check, then import
A preview shows the first events, and Each row becomes shows the exact track or identify call a row turns into. If anything looks off (an event name you've never sent, a likely typo, a property new to that event, dates in the future), a Check before importing box lists it, and Import waits until you tick These are right. Rows that can't be imported are listed with why. Importing the same file again never counts anything twice. Choose Import into: Test data to try a file first, then Live data for your real reports.
Note
utm_* columns can become the event's campaign, so a mailing counts as a marketing touch in channel reports.Importing traits
Already know things about your people, like plan, lifetime value, survey answers or a favourite band? Choose Facts about someone (traits) when mapping the file: one person per row, an ID column, and the columns to keep as traits (named after their headers). Then report on them like any trait, e.g. purchases by favourite band.
- As of: pick a date column to say when each row was true. A value older than one already known never replaces it, so a CRM export from last month can't undo what someone changed in your app yesterday. Without one, rows are true as of now.
- Traits in time: every event keeps the person's traits from the moment it happened, so reports split by a trait count each event under the value it had then, even after it changes.
- Empty cells leave a trait as it was. Each row also appears as a
user_identifiedevent at its as-of time.
Importing counts
Some sources only know how many, not who: ad impressions and reach from an ad platform, emails delivered, letters dropped by a mail house. On an import source, Import counts takes a CSV with date, event and count columns; every other column becomes a property (campaign, offer, creative). Sending the same day, event and properties again replaces the count, so corrected exports are safe to re-import. Journeys can start with them as counted stages. To send them from code, use the counts API.