View a markdown version of this page

Mapping WebAnalytics-Clickstream objects to standard objects - Amazon Connect Customer

Mapping WebAnalytics-Clickstream objects to standard objects

The WebAnalytics-Clickstream mapping template defines how clickstream event data is ingested into Customer Profiles. It maps source fields to the standard web analytics object, the standard order object, and the standard device object.

Mapping to the standard web analytics object

The following table lists which fields are mapped from the WebAnalytics-Clickstream source to the standard web analytics object.

WebAnalytics-Clickstream source field Standard web analytics target field
EventIdAttributes.ClickstreamEventId
Session.IdSession.Id
Session.StartTimestampSession.StartTimestamp
Browser.IdBrowser.Id
User.IdUser.Id
User.AnonymousIdUser.AnonymousId
User.IsReturningUser.IsReturning
User.IsLoggedInUser.IsLoggedIn
OrderIdOrderId
DeviceIdDeviceId
EventTypeEventType
EventTimestampEventTimestamp
EventDurationEventDuration
EventValueEventValue
Page.TitlePage.Title
Page.LocationPage.Location
Page.ReferrerPage.Referrer
Page.CategoryPage.Category
Element.IdElement.Id
Element.TypeElement.Type
Element.ClassesElement.Classes
Element.TextElement.Text
Element.AltTextElement.AltText
Element.SourceElement.Source
Search.QuerySearch.Query
Search.TotalMatchingResultsSearch.TotalMatchingResults
Search.ResultsPerPageSearch.ResultsPerPage
Search.CurrentResultsPageSearch.CurrentResultsPage
Search.FilterExpressionSearch.FilterExpression
Search.SortCriteriaSearch.SortCriteria
Search.SortOrderSearch.SortOrder
Item.IdItem.Id
Item.TitleItem.Title
Item.CategoryItem.Category
Item.ValueItem.Value
Item.CurrencyItem.Currency
Item.QuantityItem.Quantity
Item.ImpressionIdItem.ImpressionId
Item.ImpressionTypeItem.ImpressionType
ItemsList[].IdItemsList[].Id
ItemsList[].TitleItemsList[].Title
ItemsList[].CategoryItemsList[].Category
ItemsList[].ValueItemsList[].Value
ItemsList[].CurrencyItemsList[].Currency
ItemsList[].QuantityItemsList[].Quantity
ItemsList[].ImpressionTypeItemsList[].ImpressionType
ItemsList[].ImpressionIdItemsList[].ImpressionId
AdditionalItemImpressions[].TitleAdditionalItemImpressions[].Title
AdditionalItemImpressions[].IdAdditionalItemImpressions[].Id
AdditionalItemImpressions[].CategoryAdditionalItemImpressions[].Category
AdditionalItemImpressions[].ValueAdditionalItemImpressions[].Value
AdditionalItemImpressions[].CurrencyAdditionalItemImpressions[].Currency
Cart.IdCart.Id
Cart.ValueCart.Value
Cart.CurrencyCart.Currency
Form.IdForm.Id
Form.NameForm.Name
Form.LengthForm.Length
Form.ValidationErrorsForm.ValidationErrors
Form.FieldsCompletedForm.FieldsCompleted
Form.FieldsRequiredForm.FieldsRequired
Scroll.DepthPercentageScroll.DepthPercentage
Scroll.PositionXScroll.PositionX
Scroll.PositionYScroll.PositionY
Error.DescriptionError.Description
Error.TypeError.Type
Location.CountryLocation.Country
Location.StateLocation.State
Location.ProvinceLocation.Province
Location.CityLocation.City
Location.CountyLocation.County
Location.LatitudeLocation.Latitude
Location.LongitudeLocation.Longitude
Application.NameApplication.Name
Application.VersionApplication.Version
Application.EnvironmentApplication.Environment

Mapping to the standard order object

The following table lists which fields are mapped from the WebAnalytics-Clickstream source to the standard order object.

WebAnalytics-Clickstream source field Standard order target field
OrderIdAttributes.WebAnalyticsOrderId
Session.IdAttributes.WebSessionId
Order.ValueTotalPrice
Order.CurrencyCurrency
Order.DiscountsTotalDiscounts
Order.ShippingMethodAttributes.ShippingMethod
Order.ShipmentTrackingIdAttributes.ShipmentTrackingId
Order.ShippingAddressShippingAddress.Address1
Order.PaymentMethodGateway
ItemsList[].TitleOrderItems[].Title
ItemsList[].PriceOrderItems[].Price
ItemsList[].QuantityOrderItems[].Quantity

Mapping to the standard device object

The following table lists which fields are mapped from the WebAnalytics-Clickstream source to the standard device object.

WebAnalytics-Clickstream source field Standard device target field
DeviceIdAttributes.WebAnalyticsDeviceId
Session.IdAttributes.WebSessionId
Device.TypeType
Device.OperatingSystemOperatingSystem
Device.OSVersionOperatingSystemVersion
Device.ScreenWidthScreenWidth
Device.ScreenHeightScreenHeight
Device.BrowserBrowser
Device.BrowserVersionBrowserVersion
Device.LocaleLocale
Device.ModelModel
Device.ManufacturerManufacturer

WebAnalytics-Clickstream keys

The WebAnalytics-Clickstream data is associated with profiles using the following indexes.

Standard index name WebAnalytics-Clickstream source field Standard identifiers
_webAnalyticsClickstreamEventIdEventIdWEB_ANALYTICS, UNIQUE
_webAnalyticsUserIdUser.IdPROFILE
_webAnalyticsAnonymousUserIdUser.AnonymousIdPROFILE
_webAnalyticsOrderIdOrderIdORDER
_webAnalyticsDeviceIdDeviceIdDEVICE

For example, you can use _webAnalyticsUserId or _webAnalyticsAnonymousUserId as a key name with the SearchProfiles API to find a profile associated with web analytics clickstream events. You can find the WebAnalytics-Clickstream objects associated with a specific profile by using the ListProfileObjects API with the ProfileId and ObjectTypeName set to WebAnalytics-Clickstream.