-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #78 from adobe/staging
staging -> main for v5.0.0 release
- Loading branch information
Showing
36 changed files
with
1,977 additions
and
992 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
AEPEdgeBridge.xcodeproj/xcshareddata/xcschemes/AEPEdgeBridge.xcscheme
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
AEPEdgeBridge.xcodeproj/xcshareddata/xcschemes/AEPEdgeBridgeXCF.xcscheme
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
AEPEdgeBridge.xcodeproj/xcshareddata/xcschemes/FunctionalTests.xcscheme
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
AEPEdgeBridge.xcodeproj/xcshareddata/xcschemes/TestAppSwiftUI.xcscheme
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
AEPEdgeBridge.xcodeproj/xcshareddata/xcschemes/UnitTests.xcscheme
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
# Edge Bridge Data Format | ||
|
||
The AEP Edge Bridge extension maps the data sent in `trackAction` and `trackState` API calls to a specific format known to Analytics which requires no additional server-side mapping. This document outlines the data format applied to the tracking data. | ||
|
||
|
||
As of version 5.0.0 of AEP Edge Bridge for iOS, the following table lists the mapping of the `trackAction` and `trackState` parameters to the "data" node of the Experience Event sent to the Edge Network. Adobe Experience Platform Edge Network automatically maps these data variables into Adobe Analytics without additional server-side configuration. | ||
|
||
|
||
| Data | Key path in the network request | Description | | ||
| --- | --- | --- | ||
| action | `data.__adobe.analytics.linkName` | Additionally, the field `data.__adobe.analytics.linkType` with value `lnk_o` is automatically included. | | ||
| state | `data.__adobe.analytics.pageName` | | | ||
| context data | `data.__adobe.analytics.contextData` | Context data is a map which includes the custom keys and values specified in the `trackAction` and `trackState` API calls. | | ||
| && prefixed context data | `data.__adobe.analytics` | Context data keys prefixed with `&&` must be known to Analytics and are case sensitive. When mapped to the event, the key's name does not include the "&&" prefix. For example, "&&products" is sent as `data.__adobe.analytics.products`.| | ||
| app identifier | `data.__adobe.analytics.contextData.a.AppID` | The application identifier is automatically added to every tracking event. Note the key name is "a.AppID".| | ||
| customer perspective | `data.__adobe.analytics.cp` | The customer perspective is automatically added to every tracking event. The values are either "foreground" or "background". | | ||
|
||
### Examples | ||
|
||
Given the track action call: | ||
|
||
```swift | ||
MobileCore.track(action: "action name", data: ["key": "value", "&&products": ";Running Shoes;1;69.95;event1|event2=55.99;eVar1=12345"]) | ||
``` | ||
The resulting Experience Event has the following payload: | ||
|
||
```json | ||
{ | ||
"data":{ | ||
"__adobe": { | ||
"analytics": { | ||
"linkName": "action name", | ||
"linkType": "lnk_o", | ||
"cp": "foreground", | ||
"products": ";Running Shoes;1;69.95;event1|event2=55.99;eVar1=12345", | ||
"contextData":{ | ||
"a.AppID": "myApp 1.0 (1)", | ||
"key": "value" | ||
} | ||
} | ||
} | ||
} | ||
``` | ||
|
||
Given the track state call: | ||
|
||
```swift | ||
MobileCore.track(state: "view name", data: ["&&events": "event5,event2=2"]) | ||
``` | ||
|
||
The resulting Experience Event has the following payload: | ||
|
||
```json | ||
{ | ||
"data":{ | ||
"__adobe": { | ||
"analytics": { | ||
"pageName": "view name", | ||
"cp": "foreground", | ||
"events": "event5,event2=2", | ||
"contextData":{ | ||
"a.AppID": "myApp 1.0 (1)", | ||
} | ||
} | ||
} | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
source 'https://rubygems.org' | ||
|
||
gem 'cocoapods', '= 1.10.0' | ||
gem 'cocoapods', '= 1.14.3' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.