Ruka hadi maudhui makuu

Watu na vikundi

Matukio hutoka kwa watu, na orodha hujengwa kutokana na wanachotuma: kitambulisho kisichojulikana huwa mtu pale wito wa identify unapomtaja, vikundi hufika kwa njia ileile, na kikundi ni seti iliyohifadhiwa ya watu iliyofafanuliwa kwa tabia au hali.

At a glance

Identity
identify names an anonymous id; write-once
Traits
$-prefixed traits are reserved; the rest are yours
Groups
group(type, key) rides the same pipeline
Cohorts
Behavioural clauses are swept; state clauses are live; a pasted or kept list is static, never re-evaluated
Auth
Project key to send, access token to read
  • Sifa zilizohifadhiwa huvaa kiambishi $; sifa maalum iitwayo email hubaki maalum.
  • Utambulisho huandikwa mara moja: wakati mtu alipotajwa kwa mara ya kwanza hausogei kamwe.
  • Kuunganisha ni kwa makusudi: vitambulisho viwili huwa mtu mmoja tu vinapoombwa, kamwe si kwa kubahatisha.
  • Kufuta ni kwa mwisho: ombi moja humfuta mtu pamoja na wasifu, matukio, rekodi, mazungumzo na kila jina mbadala, na kazi iliyokamilika haihifadhi ilimfuta nani.

Jinsi inavyofanya kazi

Every event carries a distinct id, and the directory folds them into people: first seen, last seen, event and session counts, and the properties their identifying events carried. Identification is an event like any other, which is why an identify accepted with a 202 is accepted for processing rather than instantly visible. A cohort then names a set of these people: behavioural clauses count events over a window and are re-evaluated by a sweep that stamps when it ran; state clauses compare current attributes and are answered live. The same cohort scopes a workbench question, targets a campaign and gates a workflow trigger.

Wapi kuifikia

SurfaceOperation
RESTPOST /v1/identify · POST /v1/group (project key, accepted for processing) · POST /v1/projects/{projectId}/erasures · GET /v1/projects/{projectId}/erasures/{erasureId} (access token)
GraphQLpeople, person, peopleGroups, cohorts, cohort, cohortMembers, cohortMemberCount, endUserErasure queries · mergePeople, erasePerson, createCohort, updateCohort, setCohortActive, deleteCohort, createStaticCohort, createCohortFromResult, addCohortMembers, removeCohortMembers mutations
RealtimeNone of its own: the directory updates as events are processed
MCPprodantix.people.erase · prodantix.people.erasure

Mfano

curl "https://eu.api.prodantix.com/v1/identify" \
  -H "Authorization: Bearer $PRODANTIX_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "distinct_id": "u_8f3a", "properties": { "$email": "ada@example.com", "plan": "pro" } }'

The directory is browsed on the People screen and cohorts are authored on Cohorts.