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
Once you enable Adobe Analytics (formerly known as Omniture or Sitecatalyst) in Segment, you can start sending data from any of the Segment [libraries](/docs/connections/sources/catalog/) to an Adobe report suite. When you send events from Segment's mobile SDKs or Cloud-mode libraries, Segment translates that data using a mapping that you configure, and then passes it to the Adobe Analytics [Data Insertion API](https://docs.adobe.com/content/help/en/analytics/import/c-data-insertion-api.html){:target="_blank”}.The following documentation provides detailed explanation of the Device-mode functionality.
8
-
7
+
Once you enable Adobe Analytics (formerly known as Omniture or Sitecatalyst) in Segment, you can start sending data from any of the Segment [libraries](/docs/connections/sources/catalog/) to an Adobe report suite. When you send events from Segment's mobile SDKs or Cloud-mode libraries, Segment translates that data using a mapping that you configure, and then passes it to the Adobe Analytics [Data Insertion API](https://docs.adobe.com/content/help/en/analytics/import/c-data-insertion-api.html){:target="_blank”}.
9
8
10
9
## Planning for Adobe Analytics
11
10
12
-
Adobe Analytics uses a slightly different approach to tracking than Segment, and it's important to understand the difference so you can effectively set up your account. Segment uses a user-action data model, which uses different types of calls to track different activities of a user on a website or app. Adobe Analytics uses page views as the basic unit of activity, and variables like custom traffic variables (also called 'props'), eVars, list variables, and hierarchy variables to add details that allow more nuanced analysis.
11
+
Adobe Analytics uses a slightly different approach to tracking than Segment, and it's important to understand the difference so you can effectively set up your integration. Segment uses a user-action data model, which uses different types of calls to track different activities of a user on a website or app. Adobe Analytics uses page views as the basic unit of activity, and variables like custom traffic variables (also called 'props'), eVars, list variables, and hierarchy variables to add details for more nuanced analysis.
13
12
14
-
For example, a `Welcome Dialog Dismissed` event in Segment (where the action is "dismissed") with properties that contain the user ID (`user123`) and the dialog name `welcome-dialog`, could be modeled in Adobe Analytics as a pageView with variables that represent the dialog name, visitorID, and the event name mapping the user action ("dismissed") to an eVar.
13
+
For example, if one of your end users dismissed a welcome dialog in your app, Segment would generate a `Welcome Dialog Dismissed` event with properties that contain the user ID (`user123`) and the dialog name (`welcome-dialog`), while Adobe Analytics would model the same action as a pageView with variables that represent the dialog name, visitorID, and the event name, and an eVar ("dismissed").
15
14
16
-
Both Segment and Adobe Analytics have recommended standard data for tracking events. Segment has [the Spec](/docs/connections/spec/), and Adobe uses predefined events. Segment automatically maps incoming event data and some product level properties to Adobe's predefined events, when the event data is in the correct Segment Ecommerce Spec format. Video calls using the format described in this document are also automatically mapped. If you're using the Mobile SDKs, mobile lifecycle events are also automatically mapped. If you will be creating Page and Track events that are outside the scope of the Ecommerce spec, you'll need to map those to your Segment destinations settings UI.
15
+
Both Segment and Adobe Analytics have recommended standard data for tracking events. Segment has [the Spec](/docs/connections/spec/), and Adobe uses predefined events. Segment automatically maps incoming event data and some product level properties to Adobe's predefined events, when the event data is in the correct Segment Ecommerce Spec](/docs/connections/spec/ecommerce/v2/) format. Video calls using the format described in [this document](/docs/connections/spec/video) are also automatically mapped. If you're using the Mobile SDKs, mobile lifecycle events are also automatically mapped. If you need to create Page and Track events that are outside the scope of the Ecommerce Spec, you need to map those in your Segment destinations settings UI.
17
16
18
-
We strongly recommend that you create a tracking plan for both your Segment and Adobe Analytics events before you send any events or properties to Adobe. This will help you map your Segment events to Adobe `events`, and Segment properties to Adobe variables. If you decide to set up Adobe Analytics for mobile, you'll have to do this mapping in both the Segment settings, and the Adobe Mobile Services dashboard - so it's good to keep your options open!
17
+
Segment strongly recommends that you create a [Tracking Plan](/docs/protocols) for both your Segment and Adobe Analytics events before you send any events or properties to Adobe. This helps you map your Segment events to Adobe `events` and Segment properties to Adobe variables. If you decide to set up Adobe Analytics for mobile, you must set up this mapping in both the Segment settings and the Adobe Mobile Services dashboard, so it's good to stay consistent.
19
18
20
19
## Setting Up the Adobe Analytics SDK
21
20
22
-
Before you start sending data from your Swift application to Adobe Analytics, you must first finish the following set up steps:
21
+
Before you start sending data from your Swift application to Adobe Analytics, complete the following setup steps:
23
22
24
-
- First, enable the Segment-Adobe Analytics destination from in your Segment workspace.
25
-
- From your Adobe Mobile Services dashboard, check and customize the settings on the "Manage App Settings" tab.
26
-
- Download these settings as the `ADBMobileConfig.json` file by clicking the **Config JSON** link at the bottom of the same tab. Follow the instructions in Adobe's documentation [here](https://marketing.adobe.com/resources/help/en_US/mobile/ios/dev_qs.html){:target="_blank”}
27
-
- Finally, follow the instructions below for each mobile environment to bundle Segment's Adobe Analytics SDK in your project.
23
+
1. Enable the Segment-Adobe Analytics destination in your Segment workspace.
24
+
2. From your Adobe Mobile Services dashboard, check and customize the settings on the "Manage App Settings" tab.
25
+
3. Download these settings as the `ADBMobileConfig.json` file by clicking the **Config JSON** link at the bottom of the same tab. Follow the instructions in Adobe's [Core implementation and lifestyle](https://marketing.adobe.com/resources/help/en_US/mobile/ios/dev_qs.html){:target="_blank”} documentation.
26
+
4. Follow the instructions below for each mobile environment to add the Adobe Analytics dependency to your project.
28
27
29
28
> success ""
30
29
> **Tip**: Mobile implementations use the `ADBMobileConfig.json` file to store the settings that you would otherwise enter in the Adobe Analytics destination settings in the Segment app. You can change these settings from the Manage App Settings tab in your Adobe Mobile Services dashboard, and can download the file from that same tab. This file includes the Report Suite ID, Timestamp Option, Tracking Server Secure URL, Tracking Server URL, and Use Secure URL for Server-side settings.
31
30
32
31
33
32
## Adding the dependency
34
33
35
-
### through Xcode
34
+
### Using Xcode
36
35
In the Xcode `File` menu, click `Add Packages`. You'll see a dialog where you can search for Swift packages. In the search field, enter the URL to this repository.
You'll then have the option to pin to a version, or specific branch, as well as which project in your workspace to add it to. Once you've made your selections, click the `Add Package` button.
41
+
You then have the option to pin to a version or specific branch and select which project in your workspace to add the package to. Once you've made your selections, click the **Add Package** button.
41
42
42
-
### through Package.swift
43
+
### Using Package.swift
43
44
44
-
Open your Package.swift file and add the following do your the `dependencies` section:
45
+
Open your Package.swift file and add the following to the `dependencies` section:
Segment strongly recommends that you create a tracking plan for both your Segment and Adobe Analytics events _before_ you send any events or properties to Adobe. This helps you map your Segment events to Adobe `events`, and Segment properties to Adobe `eVars` or `props`, since you'll have to do this in both the Segment settings UI and your Adobe Mobile Services dashboard.
75
+
Segment strongly recommends that you create a tracking plan for both your Segment and Adobe Analytics events _before_ you send any events or properties to Adobe. This helps you map your Segment events to Adobe `events` and Segment properties to Adobe `eVars` or `props`, since you'll have to do this in both the Segment settings UI and your Adobe Mobile Services dashboard.
75
76
76
77
## Sending Events
77
78
@@ -80,146 +81,83 @@ You can map Segment events in your `Events V2` settings to any event variable yo
80
81
> warning ""
81
82
> **Note**: Do not use the deprecated `Events` settings. These no longer forward events to Adobe.
82
83
83
-
Here's an example of how you might map Segment events to Adobe Analytics events connected in device mode:
84
+
To map Segment events to Adobe Analytics events in device mode:
84
85
85
86
<!--todo: rewrite this so that it doesn't rely on the screenshots to explain how to map events in Segment-->
86
87
87
-

88
+

88
89
89
90
Here's an example of how you would implement the same mapping in Adobe's Mobile Services Dashboard:
90
91
91
-

92
+

92
93
93
94
## Sending Custom Properties
94
95
95
96
You can use the `Context Data Variables` settings to map Segment `properties` to any context data variable defined in your Adobe Analytics Mobile Services dashboard. This includes both Adobe `props` and `eVars`. You can see a list of the Adobe variable types in your Adobe Mobile Services dashboard.
96
97
97
-

98
+

98
99
99
100
Here's an example of how you would implement the same mapping in Adobe's Mobile Services Dashboard:
100
101
101
-


|`context.arrayKey.key`<br> for example: `context.device.id`|`arrayKey.key`<br> for example: `device.id`|`.context.arrayKey.key`|
115
+
|`properties.key`|`key`|`.key`|
116
+
151
117
152
118
## Adobe Lifecycle events
153
119
154
-
Segment implements Adobe Lifecycle Events automatically - you don't have to enable any additional settings! Lifecycle events gather important information such as app launches, crashes, session length, and more. See the [list of all Adobe lifecycle metrics and dimensions](https://marketing.adobe.com/resources/help/en_US/mobile/android/metrics.html){:target="_blank”} to learn more.
120
+
Segment implements Adobe Lifecycle Events automatically - you don't have to enable any additional settings. Lifecycle events gather important information like app launches, crashes, session length, and more. See the [list of all Adobe lifecycle metrics and dimensions](https://marketing.adobe.com/resources/help/en_US/mobile/android/metrics.html){:target="_blank”} to learn more.
155
121
156
122
## Identify
157
123
158
124
When you make an Identify call, Segment sets the Adobe `visitorId` to the value of the user's Segment `userId`. The snippets below show what Segment does with this information.
159
125
160
-
{% codeexample %}
161
-
{% codeexampletab Identify on iOS %}
162
126
```objc
163
127
[ADBMobile setUserIdentifier:@"123"];
164
128
```
165
-
{% endcodeexampletab %}
166
-
{% endcodeexample %}
167
129
168
130
## Screen
169
131
170
-
When you call `screen`, Segment sends an Adobe `trackState` event, and passes the screen name and any properties you mapped to Adobe, as context data values. The snippets below show what Segment does with this information.
132
+
When you call Screen, Segment sends an Adobe `trackState` event, and passes the screen name and any properties you mapped to Adobe as context data values. The snippets below show what Segment does with this information.
171
133
172
-
{% codeexample %}
173
-
{% codeexampletab Screen on iOS %}
174
134
175
135
```objc
176
136
[self.ADBMobile trackState:@"Home Screen" data:<properties mapped in contextData>];
177
137
```
178
-
{% endcodeexampletab %}
179
-
{% endcodeexample %}
180
-
181
138
182
139
## Track
183
140
184
-
When you call `track`, Segment sends an Adobe `trackAction` event, and passes your event name and any properties you mapped to Adobe, as context data values.
141
+
When you call Track, Segment sends an Adobe `trackAction` event, and passes your event name and any properties you mapped to Adobe as context data values.
185
142
The snippets below show what Segment does with this information.
186
143
187
-
{% codeexample %}
188
-
{% codeexampletab Track on iOS %}
189
-
190
144
```objc
191
145
[ADBMobile trackAction:@"Clicked A Button" data:<propertiesmappedincontextData>];
192
146
```
193
-
{% endcodeexampletab %}
194
-
{% endcodeexample %}
195
-
196
147
197
148
## Reset
198
149
199
-
Calling `reset` sets the user's `visitorId` to `null`. `null` is Adobe's default `visitorId` value until you explicitly set it (by calling `identify`). The snippets below show what Segment does in the background.
150
+
Calling `reset` sets the user's `visitorId` to `null`. `null` is Adobe's default `visitorId` value until you explicitly set it (by calling Identify). The snippets below show what Segment does in the background.
200
151
201
-
{% codeexample %}
202
-
{% codeexampletab Reset on iOS %}
203
152
204
153
```objc
205
154
[ADBMobile trackingClearCurrentBeacon];
206
155
```
207
-
{% endcodeexampletab %}
208
-
{% endcodeexample %}
209
-
210
-
211
156
212
157
## Flush
213
158
214
159
Calling `flush` immediately sends all locally queued events to Adobe.
0 commit comments