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: src/connections/auto-instrumentation/event-builder.md
+20-1Lines changed: 20 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -57,4 +57,23 @@ Follow these steps to create an event:
57
57
58
58
For example, suppose a user taps an "Add to Cart" button. You can define an `Add to Cart` event by combining the button click signal with a network response signal that includes product details. You can then map properties like product name, ID, and price directly from the network response to your event.
59
59
60
-
Once published, your event rules appear in the **Event Rules** tab of the Event Builder. From this tab, you can view all of your published rules and delete rules you no longer need.
60
+
Once published, your event rules appear in the **Event Rules** tab of the Event Builder. From this tab, you can view all of your published rules and delete rules you no longer need.
61
+
62
+

63
+
64
+
## Choose an event type
65
+
66
+
When you define a new event in the Event Builder, you assign it an event type. This determines how Segment and your downstream tools interpret the data.
67
+
68
+
Each type has a specific role in the Segment event model:
|`track`| Custom event tracking. Use this for actions like `Product Viewed`, `Add to Cart`, or `Signup Started`. |
73
+
|`identify`| User identification. Use this to associate traits like `email`, `userId`, or `plan type` with a known user. |
74
+
|`page`| Web page view tracking. Use this to log visits to specific pages on your website. |
75
+
|`screen`| Mobile screen view tracking. Use this to log navigation events in native mobile apps. |
76
+
77
+
For example, if you're capturing a login flow, you might create an `identify` event that maps traits such as `userId` and `email` from a network response signal. For actions like clicking a checkout button, you’d define a `track` event (e.g., `Checkout Started`) that includes cart value, item count, and currency.
78
+
79
+
Segment uses the event name and any mapped properties to send real-time analytics events through your configured destinations.
0 commit comments