Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Collect ¶
Collect refuses the whole batch with an *events.RejectionError when an event claims a reserved action: delivery, consent and Contact lifecycle facts are the system's alone.
func Identify ¶
Identify binds a Visitor to a Contact and asserts that Contact's alias keys (subject_id / email / phone). It upserts the Contact by any present alias key, auto-creates typed Custom fields from the traits, binds the device, and stitches the device's earlier anonymous Events onto the Contact so pre-identify behavior becomes visible to segmentation. A newly created Contact emits contact.created.
Types ¶
type CollectEventInput ¶
type CollectEventInput struct {
VisitorID string
Action string
Properties map[string]any
OccurredAt *time.Time
// ClientEventID is the client's own id for the event ("" = none). A repeat of an id
// in a Workspace is a no-op, so a client can retry a batch it never saw answered.
ClientEventID string
}
Click to show internal directories.
Click to hide internal directories.