Skip to content

Commit d771e7b

Browse files
committed
add another screenshot of event rules
1 parent 7a0d5ee commit d771e7b

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

src/connections/auto-instrumentation/event-builder.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,23 @@ Follow these steps to create an event:
5757

5858
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.
5959

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+
![The Event Rules tab shown in the Event Builder, showing six custom rules, categorized by event type](images/event_rules.png)
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:
69+
70+
| Event type | Description |
71+
| ---------- | ----------------------------------------------------------------------------------------------------------- |
72+
| `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.
94.9 KB
Loading

0 commit comments

Comments
 (0)