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/configuration.md
+12-16Lines changed: 12 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,19 +3,15 @@ title: Generate Events from Signals
3
3
hidden: true
4
4
---
5
5
6
-
This guide details how to use signals, and their associated data, generated in one of the Signals SDKs with the Auto-Instrumentation dashboard in your Segment workspace. On this page, you'll find details on:
6
+
This guide details how to use signals and their associated data, generated in one of the Signals SDKs with the Auto-Instrumentation dashboard in your Segment workspace. On this page, find details on:
7
7
8
-
- Creating custom rules to capture and translate signals into actionable analytics events
9
-
- Example rules that you can use as a basis for further customization
8
+
- Creating custom rules to capture and translate signals into actionable analytics events.
9
+
- Example rules that you can use as a basis for further customization.
10
10
11
11
This guide assumes that you've already added the Signals SDK to your application. If you haven't yet, see the [Auto-Instrumentation Setup](/docs/connections/auto-instrumentation/) guide for initial setup.
12
12
13
-
> info "Auto-Instrumentation Private Beta"
14
-
> 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.
15
-
16
-
> success "Enable Auto-Instrumentation"
17
-
> To enable Auto-Instrumentation in your Segment workspace, reach out to your dedicated account manager.
18
-
13
+
> info "Auto-Instrumentation in public beta"
14
+
> Auto-Instrumentation is in public beta, and Segment is actively working on this feature. Some functionality may change before it becomes generally available.
19
15
20
16
## Converting signals to events
21
17
@@ -34,9 +30,9 @@ After you set up the Signals SDK to capture the signals you want to target, you
34
30
35
31
The Rules Editor is where you define rules that transform raw signal data into analytics events. Using the dropdown-based editor, you can:
36
32
37
-
- Combine multiple signals into a single event (for example, a click followed by a navigation)
38
-
- Set conditions to control when events should be triggered
39
-
- Assign custom event names
33
+
- Combine multiple signals into a single event (for example, a click followed by a navigation).
34
+
- Set conditions to control when events should be triggered.
35
+
- Assign custom event names.
40
36
41
37
#### Tracking plan integration
42
38
@@ -46,8 +42,8 @@ If your source is connected to a tracking plan, you can quickly confirm that a r
46
42
47
43
You can enrich your events by adding properties based on signal metadata. For example:
48
44
49
-
- Capture `product.price` in your **Add to Cart** event
50
-
- Add a boolean field like `couponApplied` to your **Order Completed** event
45
+
- Capture `product.price` in your **Add to Cart** event.
46
+
- Add a boolean field like `couponApplied` to your **Order Completed** event.
51
47
52
48
These properties are sent alongside your event, giving your team deeper insights without requiring any manual instrumentation.
53
49
@@ -99,7 +95,7 @@ interface RawSignal<T> {
99
95
100
96
### Signal Types
101
97
102
-
The Signal Type enum defines the different types of signals the SDK can collect:
98
+
The Signal Type `enum` defines the different types of signals the SDK can collect:
103
99
104
100
```java
105
101
enum SignalType {
@@ -327,4 +323,4 @@ function ProcessSignals(signal) {
327
323
trackAddToCart(signal); // Process the "Add To Cart" tracking based on incoming signals
Copy file name to clipboardExpand all lines: src/connections/auto-instrumentation/index.md
+3-6Lines changed: 3 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,11 +26,8 @@ redirect_from:
26
26
27
27
Auto-Instrumentation simplifies tracking in your websites and apps by removing the need for a traditional Segment instrumentation.
28
28
29
-
> info "Auto-Instrumentation Private Beta"
30
-
> 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.
31
-
32
-
> success "Enable Auto-Instrumentation in your workspace"
33
-
> To enable Auto-Instrumentation in your Segment workspace, reach out to your dedicated account manager or friends@segment.com.
29
+
> info "Auto-Instrumentation in public beta"
30
+
> Auto-Instrumentation is in public beta, and Segment is actively working on this feature. Some functionality may change before it becomes generally available.
34
31
35
32
## Background
36
33
@@ -52,7 +49,7 @@ After you install the required SDKs and enable Auto-Instrumentation, Segment det
52
49
53
50
You can group signals into complete analytics events, assign names, and map custom properties. You can then [use this data to create detailed analytics events](/docs/connections/auto-instrumentation/configuration/) based on those signals, enriching your insights into user behavior and application performance.
This guide shows how to install and configure the library, as well as how to enable optional plugins for screen views, network activity, and more.
9
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.
10
+
> info "Auto-Instrumentation in public beta"
11
+
> Auto-Instrumentation is in public beta, and Segment is actively working on this feature. Some functionality may change before it becomes generally available.
12
12
13
-
> success "Auto-Instrumentation access"
14
-
> To turn Auto-Instrumentation on in your Segment workspace, reach out to your dedicated account manager.
15
-
16
-
## Before you begin
13
+
## Before you start
17
14
18
15
To use Signals with Android, you need:
19
16
20
-
- An active Segment workspace with Auto-Instrumentation enabled
21
-
- A Kotlin-based Android project
22
-
- Android Gradle Plugin version 7.0 or later
23
-
- A minimum compile SDK version of 21
17
+
- An active Segment workspace with Auto-Instrumentation enabled.
18
+
- A Kotlin-based Android project.
19
+
- Android Gradle Plugin version 7.0 or later.
20
+
- A minimum compile SDK version of 21.
24
21
25
-
Signals supports [Jetpack Compose](https://developer.android.com/compose){:target="_blank"} and traditional Android UI frameworks. It also includes optional plugins for network tracking using [OkHttp3](https://square.github.io/okhttp/){:target="_blank"}, [Retrofit](https://square.github.io/retrofit/){:target="_blank"}, or `HttpURLConnection`](https://developer.android.com/reference/java/net/HttpURLConnection){:target="_blank"}.
22
+
Signals supports [Jetpack Compose](https://developer.android.com/compose){:target="_blank"} and traditional Android UI frameworks. It also includes optional plugins for network tracking using [OkHttp3](https://square.github.io/okhttp/){:target="_blank"}, [Retrofit](https://square.github.io/retrofit/){:target="_blank"}, or [HttpURLConnection](https://developer.android.com/reference/java/net/HttpURLConnection){:target="_blank"}.
26
23
27
24
Segment recommends testing in a development environment before deploying Signals in production. For more information, see [Debug mode](#step-4-enable-debug-mode).
28
25
@@ -66,7 +63,7 @@ Only add the plugins you plan to use. You can add or remove them later without r
66
63
67
64
## Step 2: Initialize the SDK
68
65
69
-
After you add dependencies, you'll need to initialize the Analytics client and configure the Signals plugin.
66
+
After you add dependencies, you need to initialize the Analytics client and configure the Signals plugin.
70
67
71
68
Start by creating the `Analytics` instance using your source's write key. Then add the Signals plugin and configure its settings separately.
When you run this code, keep the following in mind:
100
97
101
-
- You'll need to replace `<WRITE_KEY>` with the key from your Android Source in Segment.
98
+
- You need to replace `<WRITE_KEY>` with the key from your Android Source in Segment.
102
99
-`debugMode` sends signals to Segment for use in the Event Builder. Only enable it in development environments.
103
100
- If your app doesn't use Jetpack Compose or Navigation, you can skip those plugin lines.
104
101
@@ -233,7 +230,7 @@ If `debugMode` is enabled, Signals appear in real time as you interact with the
233
230
5. After you add any event mappings, click **Publish event rules** to save them.
234
231
235
232
> info "What if I don't see the Event Builder tab?"
236
-
> If you don't see the Event Builder tab, confirm that the SDK is installed correctly and make sure `debugMode` is enabled. If you still don't see it, reach out to your CSM to verify that your workspace has Auto-Instrumentation enabled.
233
+
> If you don't see the Event Builder tab, confirm that the SDK is installed correctly and make sure `debugMode` is enabled. Verify that Auto-Instrumentation is enabled in **Settings > Advanced**. If you still don't see it, reach out to your CSM.
Copy file name to clipboardExpand all lines: src/connections/auto-instrumentation/swift-setup.md
+9-12Lines changed: 9 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,17 +5,14 @@ hidden: true
5
5
6
6
This guide outlines the steps required to set up the Signals SDK in your Apple OS applications using Swift.
7
7
8
-
You'll learn how to connect an existing source, integrate dependencies, turn on Auto-Instrumentation, and verify that your setup captures and processes data as intended.
8
+
Learn how to connect an existing source, integrate dependencies, turn on Auto-Instrumentation, and verify that your setup captures and processes data as intended.
9
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
-
> success "Auto-Instrumentation access"
14
-
> To turn Auto-Instrumentation on in your Segment workspace, reach out to your dedicated account manager.
10
+
> info "Auto-Instrumentation in public beta"
11
+
> Auto-Instrumentation is in public beta, and Segment is actively working on this feature. Some functionality may change before it becomes generally available.
15
12
16
13
## Step 1: Get your source write key
17
14
18
-
You need the `writeKey` from an existing Segment source:
15
+
You need the `writeKey` from an existing Segment source. To find it:
19
16
20
17
1. In your Segment workspace, go to **Connections > Sources**.
21
18
2. Select your source.
@@ -24,7 +21,7 @@ You need the `writeKey` from an existing Segment source:
24
21
25
22
## Step 2: Add dependencies and initialization code
26
23
27
-
Next, you'll need to add the Signals SDKs to your Swift applicatiion.
24
+
Next, add the Signals SDKs to your Swift applicatiion.
28
25
29
26
1. Use Swift Package Manager to add the Signals SDK from the following repository:
30
27
@@ -35,7 +32,7 @@ Next, you'll need to add the Signals SDKs to your Swift applicatiion.
35
32
2. Add the initialization code and configuration options:
36
33
37
34
> success ""
38
-
>see [configuration options](#configuration-options) for a complete list.
35
+
>See [configuration options](#configuration-options) for a complete list.
39
36
40
37
```swift
41
38
// Configure Analytics with your settings
@@ -58,11 +55,11 @@ Next, you'll need to add the Signals SDKs to your Swift applicatiion.
58
55
Analytics.main.add(plugin: Signals.shared)
59
56
```
60
57
61
-
Verify that you replaced `<WRITE_KEY>` with the actual write key you copied in Step 1.
58
+
Verify that you replaced `<WRITE_KEY>` with the actual write key you copied in[Step 1](#step-1-get-your-source-write-key).
62
59
63
60
#### SwiftUI projects
64
61
65
-
If your app is written in SwiftUI, you'll need to add a `TypeAlias.swift` file to your project that captures interaction and navigation Signals, like in this example:
62
+
If your app is written in SwiftUI, you need to add a `TypeAlias.swift` file to your project that captures interaction and navigation Signals, like in this example:
66
63
67
64
```swift
68
65
import Foundation
@@ -96,7 +93,7 @@ After integrating the SDK and running your app, verify that Segment is collectin
96
93
4. Use the app as a user would: navigate between screens, tap buttons, trigger network requests. Signals appear in real time as you interact with the app.
97
94
5. In the Event Builder, find a signal and click **Configure event** to define a new event. After configuring the event, click **Publish event rules**.
98
95
99
-
## Configuration Options
96
+
## Configuration options
100
97
101
98
Using the Signals Configuration object, you can control the destination, frequency, and types of signals that Segment automatically tracks within your application. The following table details the configuration options for Signals-Swift.
Copy file name to clipboardExpand all lines: src/connections/auto-instrumentation/web-setup.md
+10-13Lines changed: 10 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,17 +5,14 @@ hidden: true
5
5
6
6
This guide outlines the steps required to set up the Signals SDK in your JavaScript website.
7
7
8
-
You'll learn how to connect an existing source, integrate dependencies, turn on Auto-Instrumentation, and verify that your setup captures and processes data as intended.
8
+
Learn how to connect an existing source, integrate dependencies, turn on Auto-Instrumentation, and verify that your setup captures and processes data as intended.
9
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
-
> success "Auto-Instrumentation access"
14
-
> To turn Auto-Instrumentation on in your Segment workspace, reach out to your dedicated account manager.
10
+
> info "Auto-Instrumentation in public beta"
11
+
> Auto-Instrumentation is in public beta, and Segment is actively working on this feature. Some functionality may change before it becomes generally available.
15
12
16
13
## Step 1: Get your source write key
17
14
18
-
You need the `writeKey` from an existing Segment source:
15
+
You need the `writeKey` from an existing Segment source. To find it:
19
16
20
17
1. In your Segment workspace, go to **Connections > Sources**.
21
18
2. Select your source.
@@ -24,7 +21,7 @@ You need the `writeKey` from an existing Segment source:
24
21
25
22
## Step 2: Add dependencies and initialization code
26
23
27
-
Next, you'll need to add the Signals SDKs to your web environment.
24
+
Next, add the Signals SDKs to your web environment.
28
25
29
26
Choose the installation method that matches your setup:
30
27
@@ -150,7 +147,7 @@ If your site uses the standard Segment snippet, **replace it** with the followin
150
147
</head>
151
148
```
152
149
153
-
Verify that you only have **one snippet** in your site, then move to [Step 3: Verify and deploy events](#step-3-verify-and-deploy-events).
150
+
Verify that you only have **one snippet** in your site, then move on to [Step 4: Verify and deploy events](#step-4-verify-and-deploy-events).
154
151
155
152
### Option B: Install with a package manager
156
153
@@ -205,11 +202,11 @@ After integrating the SDK and running your app, verify that Segment is collectin
205
202
1. In your Segment workspace, go to **Connections > Sources** and select the source you used for Auto-Instrumentation.
206
203
2. In the source overview, look for the **Event Builder** tab. If the tab doesn’t appear:
207
204
- Make sure you've installed the SDK correctly.
208
-
-Reach out to your Segment CSM to confirm that your workspace has the necessary feature flags enabled.
205
+
-Verify that Auto Instrumentation is enabled in **Settings > Analytics.js**.
209
206

210
207
211
208
3. Open the **Event Builder** and follow the on-screen instructions to start signal detection.
212
-
- To collect signals in the UI, visit your site in a browser using the query string:`?segment_signals_debug=true`
209
+
- To collect signals in the UI, visit your site in a browser using the query string:`?segment_signals_debug=true`.
213
210
4. Interact with your app to trigger signals: click buttons, navigate pages, submit forms, and so on. Segment collects and displays these as signals in real time.
214
211
5. From the signals list, click **Configure event** to define a new event based on one or more signals. After configuring the event, click **Publish event rules**.
215
212
@@ -279,15 +276,15 @@ const signalsPlugin = new SignalsPlugin({
279
276
analytics.register(signalsPlugin);
280
277
```
281
278
282
-
#### Sandbox Strategies
279
+
#### Sandbox strategies
283
280
284
281
If you get CSP errors, you can use the experimental 'global' sandbox strategy:
285
282
286
283
```ts
287
284
newSignalsPlugin({ sandboxStrategy: "global" });
288
285
```
289
286
290
-
## Configuration Options
287
+
## Configuration options
291
288
292
289
Using the Signals Configuration object, you can control the destination, frequency, and types of signals that Segment automatically tracks within your application. The following table details the configuration options for Signals Web.
0 commit comments