You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: apps/docs/content/docs/api.mdx
+1-9Lines changed: 1 addition & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -249,7 +249,6 @@ Track custom events programmatically using the basket endpoint.
249
249
language="json"
250
250
code={`{
251
251
"type": "custom",
252
-
"eventId": "evt_12345",
253
252
"name": "purchase",
254
253
"anonymousId": "anon_user_123",
255
254
"sessionId": "session_456",
@@ -268,7 +267,6 @@ Track custom events programmatically using the basket endpoint.
268
267
language="json"
269
268
code={`{
270
269
"type": "custom",
271
-
"eventId": "evt_simple_123",
272
270
"name": "newsletter_signup",
273
271
"properties": {
274
272
"source": "footer_form"
@@ -288,7 +286,6 @@ Track custom events programmatically using the basket endpoint.
288
286
code={`[
289
287
{
290
288
"type": "custom",
291
-
"eventId": "evt_12345",
292
289
"name": "purchase",
293
290
"anonymousId": "anon_user_123",
294
291
"sessionId": "session_456",
@@ -301,7 +298,6 @@ Track custom events programmatically using the basket endpoint.
301
298
},
302
299
{
303
300
"type": "custom",
304
-
"eventId": "evt_12346",
305
301
"name": "signup",
306
302
"anonymousId": "anon_user_124",
307
303
"sessionId": "session_457",
@@ -316,7 +312,6 @@ Track custom events programmatically using the basket endpoint.
316
312
317
313
**Required Fields:**
318
314
-`type`: Must be "custom"
319
-
-`eventId`: Unique identifier for the event (max 512 characters) - used for deduplication (auto-generated if empty)
320
315
-`name`: Event name (1-128 characters)
321
316
322
317
**Optional Fields:**
@@ -326,12 +321,9 @@ Track custom events programmatically using the basket endpoint.
326
321
-`properties`: JSON object with custom event properties
327
322
328
323
<Callouttype="tip">
329
-
**Simple tracking**: For basic event tracking, you only need `type`, `eventId`, and `name`. The `anonymousId` and `sessionId` are useful for user journey tracking but not required for simple conversion or action tracking.
324
+
**Simple tracking**: For basic event tracking, you only need `type` and `name`. The `anonymousId` and `sessionId` are useful for user journey tracking but not required for simple conversion or action tracking.
330
325
</Callout>
331
326
332
-
<Callouttype="info">
333
-
**Event ID Generation**: The `eventId` is a custom string you provide for deduplication. It can be any unique identifier (UUID, timestamp-based, etc.). If you send the same `eventId` twice, the second event will be ignored. This prevents duplicate events from network retries or accidental double-sends.
0 commit comments