|
| 1 | +--- |
| 2 | +title: Auto-Instrumentation Event Builder |
| 3 | +hidden: true |
| 4 | +--- |
| 5 | + |
| 6 | +The Event Builder provides a no-code way to define analytics events based on signals collected by Auto-Instrumentation. |
| 7 | + |
| 8 | +You can use it to create Track, Identify, Page, and other event types directly from your Segment workspace. |
| 9 | + |
| 10 | +> info "Auto-Instrumentation Private Beta" |
| 11 | +> Auto-Instrumentation is currently in Private Beta and is governed by Segment's [First Access and Beta Preview Terms](https://www.twilio.com/en-us/legal/tos){:target="_blank"}. Segment is actively iterating on and improving the Auto-Instrumentation user experience. |
| 12 | +
|
| 13 | +## Access the Event Builder |
| 14 | + |
| 15 | +The Event Builder appears as a tab within each source, next to the Debugger. If you don't see the Event Builder tab, first confirm that you've installed the required Auto-Instrumentation SDK. |
| 16 | + |
| 17 | +If you've installed the SDK but still don't see the Event Builder tab, reach out to your Segment account manager to verify your workspace is included in the Auto-Instrumentation Private Beta. |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | +> info "Event Builder during Private Beta" |
| 22 | +> During Private Beta, both the Event Builder and the legacy Auto-Instrumentation tab appear in the navigation. Segment will remove the legacy tab once all customers have migrated to the Event Builder experience. |
| 23 | +
|
| 24 | +## Generate activity |
| 25 | + |
| 26 | +To populate the Event Builder with signals, you first need to open your website or app with a special query parameter that enables signal detection. |
| 27 | + |
| 28 | +1. Visit your site or app in a browser, and add `?segment_signals_debug=true` to the end of the URL. |
| 29 | + For example: `https://www.your-website.com?segment_signals_debug=true`. |
| 30 | +2. Interact with your app as a user would: click buttons, navigate between pages or screens, submit forms, and so on. |
| 31 | +3. Return to the Event Builder tab in Segment to view the signals being collected in real time. |
| 32 | + |
| 33 | + |
| 34 | + |
| 35 | + |
| 36 | +> info "Enable signal detection" |
| 37 | +> Segment only detects signals when you access your site using the `?segment_signals_debug=true` query parameter. If you visit your site without it, signals won't show up in the Event Builder. |
| 38 | +
|
| 39 | +Segment collects and displays activity as signals. These signals are grouped into types, like: |
| 40 | + |
| 41 | +- Interaction: clicks, taps, and UI interactions. |
| 42 | +- Navigation: screen changes and page transitions |
| 43 | +- Network: requests and responses |
| 44 | +- `LocalData`, Instrumentation, and `UserDefined`: additional signal types from the SDK. |
| 45 | + |
| 46 | +### How signals relate to events |
| 47 | + |
| 48 | +Segment separates signal collection from event creation. Signals represent raw user interactions, like a button click or screen view. Events, on the other hand, are analytics calls you define based on those signals. This two-step process lets you observe user behavior first, and then decide how and when to turn that behavior into structured analytics events, without needing to modify your code. |
| 49 | + |
| 50 | +Signal detection is active for 24 hours after you generate activity. Detected signals are available in the Event Builder for 72 hours. |
| 51 | + |
| 52 | +## Create an event |
| 53 | + |
| 54 | +You can create events by selecting individual signals or combining multiple signals in sequence. |
| 55 | + |
| 56 | +Follow these steps to create an event: |
| 57 | + |
| 58 | +1. Find the signal you want to use and click **Configure event**. |
| 59 | +2. Add one or more conditions. The order matters; Segment evaluates them in the order you add them. |
| 60 | + - For example, to track a successful login, first select a **button click** signal, then the **network response** signal. |
| 61 | +3. Select properties from the signal(s) to include in your event. |
| 62 | +4. Map those properties to your targeted Segment event fields. |
| 63 | +5. Name your event. This name will appear in the Debugger and downstream tools. |
| 64 | +6. Click **Publish event rules** to activate the event in your workspace. |
| 65 | + - You must publish each rule before Segment starts collecting data for the event. |
| 66 | + |
| 67 | +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. |
| 68 | + |
| 69 | +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. |
| 70 | + |
| 71 | + |
| 72 | + |
| 73 | +## Choose an event type |
| 74 | + |
| 75 | +When you define an event in the Event Builder, you assign it a type that determines how Segment and your connected destinations process it. These event types (Track, Identify, Page, and Screen) follow the same structure and behavior defined in the [Segment Spec](/docs/connections/spec/). |
| 76 | + |
| 77 | +| Event type | Description | |
| 78 | +| ---------- | ----------------------------------------------------------------------------------------------------------- | |
| 79 | +| Track | Custom event tracking. Use this for user actions like `Product Viewed`, `Add to Cart`, or `Signup Started`. | |
| 80 | +| Identify | User identification. Use this to associate traits (like `email`, `userId`, or `plan`) with a known user. | |
| 81 | +| Page | Web page view tracking. Use this to record visits to pages on your website. | |
| 82 | +| Screen | Mobile screen view tracking. Use this to record views of screens in your mobile app. | |
| 83 | + |
| 84 | +For example, to track a login flow, you might define an Identify event that maps traits like `userId` and `email` from a network response signal. To track cart activity, you could define a Track event like `Checkout Started` with properties like cart value, item count, and currency. |
| 85 | + |
| 86 | +Segment uses the event name and any mapped properties to format each event according to the Segment Spec. Events you create in the Event Builder behave the same way as events sent through Segment SDKs or APIs. |
| 87 | + |
| 88 | +> info "Event type behavior in destinations" |
| 89 | +> While Segment handles these event types consistently, downstream tools may treat them differently. For example, Identify events often update user profiles, while Page or Screen events may be handled as pageviews instead of custom events. |
0 commit comments