ID 데이터 수집
모바일 앱에서 ID 데이터를 수집하는 방법에 대해 알아봅니다.
Adobe Experience Platform Identity Service를 사용하면 디바이스와 시스템 간에 ID를 연결하여 고객과 고객의 행동을 더 잘 볼 수 있으므로 효과적인 개인 디지털 경험을 실시간으로 제공할 수 있습니다. ID 필드와 네임스페이스는 서로 다른 데이터 소스를 함께 연결하여 360도 실시간 고객 프로필을 만드는 접착제입니다.
에 대해 자세히 알아보기 ID 확장 및 id 서비스 설명서에서 참조하십시오.
전제 조건
- SDK가 설치 및 구성된 앱을 빌드하고 실행했습니다.
학습 목표
이 단원에서는 다음 작업을 수행합니다.
- 사용자 지정 ID 네임스페이스를 설정합니다.
- ID를 업데이트합니다.
- ID 그래프의 유효성을 검사합니다.
- ECID 및 기타 ID를 가져옵니다.
사용자 정의 ID 네임스페이스 설정
ID 네임스페이스는 의 구성 요소입니다. ID 서비스 id가 연관되는 컨텍스트의 지표 역할을 합니다. 예를 들어, 다음 값은 구별합니다 name@email.com
이메일 주소 또는 443522
숫자 CRM ID로.
새 ID 네임스페이스를 만들려면 다음 작업을 수행하십시오.
-
데이터 수집 인터페이스에서 다음을 선택합니다. ID 왼쪽 레일 탐색에서
-
신원 네임스페이스 만들기 를 선택합니다.
-
다음을 제공합니다. 표시 이름 /
Luma CRM ID
및 ID 심볼 값lumaCRMId
. -
선택 교차 장치 ID.
-
만들기 를 선택합니다.
ID 업데이트
사용자가 앱에 로그인할 때 표준 ID(이메일)와 사용자 지정 ID(Luma CRM ID)를 모두 업데이트하려고 합니다.
-
다음으로 이동 Luma > Luma > Utils > MobileSDK xcode Project 탐색기에서
func updateIdentities(emailAddress: String, crmId: String)
함수 구현. 다음 코드를 함수에 추가합니다.code language-swift // Set up identity map, add identities to map and update identities let identityMap: IdentityMap = IdentityMap() let emailIdentity = IdentityItem(id: emailAddress, authenticatedState: AuthenticatedState.authenticated) let crmIdentity = IdentityItem(id: crmId, authenticatedState: AuthenticatedState.authenticated) identityMap.add(item:emailIdentity, withNamespace: "Email") identityMap.add(item: crmIdentity, withNamespace: "lumaCRMId") Identity.updateIdentities(with: identityMap)
이 코드:
-
빈 을(를) 만듭니다.
IdentityMap
개체.code language-swift let identityMap: IdentityMap = IdentityMap()
-
설정
IdentityItem
이메일 및 CRM ID에 대한 개체입니다.code language-swift let emailIdentity = IdentityItem(id: emailAddress, authenticatedState: AuthenticatedState.authenticated) let crmIdentity = IdentityItem(id: crmId, authenticatedState: AuthenticatedState.authenticated)
-
다음 항목 추가
IdentityItem
에 대한 오브젝트IdentityMap
개체.code language-swift identityMap.add(item:emailIdentity, withNamespace: "Email") identityMap.add(item: crmIdentity, withNamespace: "lumaCRMId")
-
다음을 전송합니다.
IdentityItem
의 일부로 개체Identity.updateIdentities
Edge Network에 대한 API 호출.code language-swift Identity.updateIdentities(with: identityMap)
-
-
다음으로 이동 Luma > Luma > Views > General > 로그인 시트 xcode 프로젝트 탐색기에서 를 선택하고 로그인 단추를 클릭합니다. 다음 코드를 추가합니다.
code language-swift // Update identities MobileSDK.shared.updateIdentities(emailAddress: currentEmailId, crmId: currentCRMId)
updateIdentities
호출합니다. 이전에 전송된 ID를 수정할 수도 있습니다.ID 제거
다음을 사용할 수 있습니다. Identity.removeIdentity
저장된 클라이언트측 ID 맵에서 ID를 제거하기 위한 API. ID 확장은 Edge 네트워크에 대한 식별자 전송을 중지합니다. 이 API를 사용해도 서버측 ID 그래프에서 식별자가 제거되지는 않습니다. 다음을 참조하십시오 ID 그래프 보기 를 참조하십시오.
-
다음으로 이동 Luma > Luma > Utils > MobileSDK xcode 프로젝트 탐색기에서 다음 코드를
func removeIdentities(emailAddress: String, crmId: String)
함수:code language-swift // Remove identities and reset email and CRM Id to their defaults Identity.removeIdentity(item: IdentityItem(id: emailAddress), withNamespace: "Email") Identity.removeIdentity(item: IdentityItem(id: crmId), withNamespace: "lumaCRMId") currentEmailId = "testUser@gmail.com" currentCRMId = "112ca06ed53d3db37e4cea49cc45b71e"
-
다음으로 이동 Luma > Luma > Views > General > 로그인 시트 xcode 프로젝트 탐색기에서 를 선택하고 로그아웃 단추를 클릭합니다. 다음 코드를 추가합니다.
code language-swift // Remove identities MobileSDK.shared.removeIdentities(emailAddress: currentEmailId, crmId: currentCRMId)
Assurance를 통해 유효성 검사
-
리뷰 설치 지침 시뮬레이터 또는 장치를 Assurance에 연결하는 섹션입니다.
-
Luma 앱에서
-
다음 항목 선택 홈 을 탭하고 Assurance 아이콘을 왼쪽으로 이동합니다.
-
다음 항목 선택+-------------+ | img-md | +=============+ | w-15 | +-------------+ | | +-------------+오른쪽 상단의 아이콘
img-md w-300 -
이메일 주소와 CRM ID를 제공하거나
-
선택+-------------+ | img-md | +=============+ | w-15 | +-------------+ | | +-------------+을(를) 임의로 생성하려면 이메일 및 CRM ID.
-
선택 로그인.
img-md w-300
-
-
에 대한 Assurance 웹 인터페이스를 살펴봅니다. Edge Identity 업데이트 Id 다음에서 이벤트 발생 com.adobe.grifcon.mobile 공급업체.
-
이벤트를 선택하고 ACPExtensionEventData 개체. 업데이트한 ID가 표시됩니다.
ID 그래프로 유효성 검사
의 단계를 완료하면 Experience Platform 레슨, 플랫폼 ID 그래프 뷰어에서 ID 캡처를 확인할 수 있습니다.
-
선택 ID (데이터 수집 UI)
-
선택 ID 그래프 을 클릭합니다.
-
입력
Luma CRM ID
(으)로 ID 네임스페이스 및 CRM ID(예:24e620e255734d8489820e74f357b5c8
)을 로 사용하는 경우 ID 값. -
다음을 볼 수 있습니다. ID 나열됨.
Identity.resetIdentities
및 MobileCore.resetIdentities
API 호출. 하지만 푸시 알림 식별자를 사용할 때는 반드시 알아야 합니다( 참조) 푸시 알림 보내기), 이 식별자는 디바이스에서 다른 "고정" 프로필 식별자가 됩니다.다음: 프로필 데이터 수집