From 347c675520543f7ffe74eee89b8284d9245f22bf Mon Sep 17 00:00:00 2001 From: pwseg Date: Thu, 25 Sep 2025 11:34:53 -0700 Subject: [PATCH 1/2] update Swift instructions for adding/enabling a source --- .../auto-instrumentation/swift-setup.md | 22 +++++++++++++------ 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/src/connections/auto-instrumentation/swift-setup.md b/src/connections/auto-instrumentation/swift-setup.md index 1a4d327024..3e7b84abf9 100644 --- a/src/connections/auto-instrumentation/swift-setup.md +++ b/src/connections/auto-instrumentation/swift-setup.md @@ -13,15 +13,23 @@ You'll learn how to add Auto-Instrumentation sources, integrate dependencies, an > success "Enable Auto-Instrumentation" > To enable Auto-Instrumentation in your Segment workspace, reach out to your dedicated account manager. -## Step 1: Add a source and get its write key +## Step 1: Add or enable a source and get its write key -You'll first need to add a source and copy its write key: +You can either create a new source or turn on Auto-Instrumentation for an existing source. Both methods let you retrieve the `writeKey` that you’ll need later. -1. In your Segment workspace, navigate to **Connections > Auto-Instrumentation** and click **Add source**. -2. Select a source, give the source a name, and click **Save**. -3. Return to **Connections > Sources** to view your sources. -4. In the **My sources** table, find and click the new source you just set up. -5. In the **Initialize the Client** section, look for and copy the `writeKey` displayed in the code block. +### Create a new source + +1. In your Segment workspace, navigate to **Connections > Auto-Instrumentation**. +2. Select **Add source**, give the source a name, and click **Save**. +3. Return to **Connections > Sources** and select the new source you just set up. +4. In the **Initialize the Client** section, copy the `writeKey` shown in the code block. + +### Enable Auto-Instrumentation on an existing source + +If you want to use an existing source, copy its `writeKey` from **Initialize the client**. After you install the SDK (Step 2), return to the source settings to turn on Auto-Instrumentation: + +- **Web:** **Connections > Sources > [source] > Settings > Analytics.js > Auto-Instrumentation** and toggle it on. +- **Mobile:** **Connections > Sources > [source] > Settings > Advanced > Auto-Instrumentation** and toggle it on. ## Step 2: Add dependencies and initialization code From aa2a6852c8798d5d0a05ae90b6f84ae5b24a48a0 Mon Sep 17 00:00:00 2001 From: pwseg <86626706+pwseg@users.noreply.github.com> Date: Thu, 25 Sep 2025 12:36:40 -0700 Subject: [PATCH 2/2] Update src/connections/auto-instrumentation/swift-setup.md Co-authored-by: forstisabella <92472883+forstisabella@users.noreply.github.com> --- src/connections/auto-instrumentation/swift-setup.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/connections/auto-instrumentation/swift-setup.md b/src/connections/auto-instrumentation/swift-setup.md index 3e7b84abf9..844f4b28e9 100644 --- a/src/connections/auto-instrumentation/swift-setup.md +++ b/src/connections/auto-instrumentation/swift-setup.md @@ -26,7 +26,7 @@ You can either create a new source or turn on Auto-Instrumentation for an existi ### Enable Auto-Instrumentation on an existing source -If you want to use an existing source, copy its `writeKey` from **Initialize the client**. After you install the SDK (Step 2), return to the source settings to turn on Auto-Instrumentation: +If you want to use an existing source, copy its `writeKey` from **Initialize the Client**. After you install the SDK (Step 2), return to the source settings to turn on Auto-Instrumentation: - **Web:** **Connections > Sources > [source] > Settings > Analytics.js > Auto-Instrumentation** and toggle it on. - **Mobile:** **Connections > Sources > [source] > Settings > Advanced > Auto-Instrumentation** and toggle it on.