{
    "AllowProfileCreation": true,
    "Description": "Data mapping created for clickstream data",
    "DomainName": "<Your Customer Profiles Domain Name>",
    "ObjectTypeName": "ClickstreamData",
    "Fields": {
        "EventId": {
            "Source": "_source.EventId",
            "Target": "_webAnalytics.Attributes.EventId"
        },
        "SessionId": {
            "Source": "_source.Session.Id",
            "Target": "_webAnalytics.Session.Id"
        },
        "UserId": {
            "Source": "_source.User.Id",
            "Target": "_webAnalytics.User.Id"
        },
        "DeviceId": {
            "Source": "_source.DeviceId",
            "Target": "_device.Attributes.WebAnalyticsDeviceId"
        },
        "MainDeviceId": {
            "Source": "_source.DeviceId",
            "Target": "_webAnalytics.DeviceId"
        },
        "EventType": {
            "Source": "_source.EventType",
            "Target": "_webAnalytics.EventType"
        },
        "EventTimestamp": {
            "Source": "_source.EventTimestamp",
            "Target": "_webAnalytics.EventTimestamp"
        },
        "ItemId": {
            "Source": "_source.Item.Id",
            "Target": "_webAnalytics.Item.Id"
        },
        "ItemListId": {
            "Source": "_source.ItemList[].Id",
            "Target": "_webAnalytics.ItemList[].Id"
        },
        "EventValue": {
            "Source": "_source.EventValue",
            "Target": "_webAnalytics.EventValue"
        },
        "City": {
            "Source": "_source.Location.City",
            "Target": "_webAnalytics.Location.City"
        },
        "ImpressionsId": {
            "Source": "_source.AdditionalItemImpressions[].Id",
            "Target": "_webAnalytics.AdditionalItemImpressions[].Id"
        },
        "email": {
            "ContentType": "EMAIL_ADDRESS",
            "Source": "_source.User.email",
            "Target": "_profile.BusinessEmailAddress"
        },
        "phone": {
            "ContentType": "PHONE_NUMBER",
            "Source": "_source.User.phoneNumber",
            "Target": "_profile.BusinessPhoneNumber"
        },
        "birthdate": {
            "ContentType": "STRING",
            "Source": "_source.User.birthDate",
            "Target": "_profile.BirthDate"
        },
        "gender": {
            "ContentType": "STRING",
            "Source": "_source.User.gender",
            "Target": "_profile.Gender"
        },
        "postalcode": {
            "ContentType": "STRING",
            "Source": "_source.Location.PostalCode",
            "Target": "_profile.Address.PostalCode"
        }
    },
    "Keys": {
        "WebAnalyticsEventId": [{
            "FieldNames": ["EventId"],
            "StandardIdentifiers": ["WEB_ANALYTICS", "PROFILE", "UNIQUE"]
        }],
        "WebAnalyticsUserId": [{
            "FieldNames": ["UserId"],
            "StandardIdentifiers": ["PROFILE"]
        }],
        "WebAnalyticsDeviceId": [{
            "FieldNames": ["DeviceId"],
            "StandardIdentifiers": ["DEVICE"]
        }]
    }
}