개발자 가이드
User GuideDeveloper GuideAPI Guide🏠
English
English
  • 홈
  • 공통
    • Unified ID Linkage Scenario
    • Constant
    • FAQ
  • 플랫폼 별 가이드
    • Android
      • Link up
      • Event
      • Set User Identification Information
      • User Profile Settings
      • Action
        • Push
        • In-app messages
        • Notification Talk
        • Message
      • Privacy Policy
        • Support for Privacy Protection
        • Preparing for data disclosure requirements on Google Play
      • Release Notes
    • iOS
      • Link up
      • Event
      • Set user identification information
      • User Profile Settings
      • Action
        • Push
        • In-app messages
        • Notification Talk
        • message
      • Release Notes
    • HybridApp
      • Link up
    • Web
      • Link up
      • Event
      • Set user identification information
      • User Profile Settings
      • Action
        • In-app messages
        • Notification Talk
        • Message
      • Advanced use cases
        • Additional Settings
      • Release Notes
Powered by GitBook
On this page
  • First time installing the app
  • User Login
  • 1. Set user identification information
  • 2. Setting up a user profile
  • 3. Record login events
  • User logout
  • 1. Record the logout event
  • 2. Initialize user identification information (optional)
  • EXTERNAL_IDLogin using existing
  • 1. Set user identification information
  • 2. Record login events
  • EXTERNAL_IDLog in using another
  • 1. Set user identification information
  • 2. Setting up a user profile
  • 3. Record login events
  • Terminology
  • Anonymous user profile
  • Identified user profiles
  1. 공통

Unified ID Linkage Scenario

Previous홈NextConstant

Last updated 3 months ago

This document explains a hypothetical scenario as an example to help you understand the configuration of user information and terminal connection due to user identification information settings.

First time installing the app

To initialize the SDK, users must follow the steps outlined in the integration guide for each platform.

User Login

This section shows the process of transitioning from state to

1. Set user identification information

Before recording a login event, EXTERNAL_IDset the user identification information to a value that distinguishes the user. Through this process, the user is converted from an anonymous user profile to an identified user profile, and a unified ID is generated so that the user can be identified through the unified ID on any platform.

DfineryProperties.setIdentity(DFIdentity.EXTERNAL_ID, "A")
//You can increase the accuracy of user identification by setting additional identification information.
DfineryProperties.setIdentity(DFIdentity.EMAIL, "A@igaworks.com")
DfineryProperties.setIdentity(DFIdentity.PHONE_NO, "8201012345678")
...
Dfinery.shared().setIdentity(key: DFIdentity.EXTERNAL_ID, value: "A")
//You can increase the accuracy of user identification by setting additional identification information.
Dfinery.shared().setIdentity(key: DFIdentity.EMAIL, value: "jimmy.kang@igaworks.com")
Dfinery.shared().setIdentity(key: DFIdentity.PHONE_NO, value: "821012345678")
...
Dfinery.setIdentity(DFIdentity.EXTERNAL_ID, "A")
//You can increase the accuracy of user identification by setting additional identification information.
Dfinery.setIdentity(DFIdentity.EMAIL, "A@igaworks.com")
Dfinery.setIdentity(DFIdentity.PHONE_NO, "8201012345678")

2. Setting up a user profile

If there is information required for the settings corresponding to the identified user A, it is reflected through the user profile settings.

User profiles can reflect arbitrary key values ​​set by the user in the console.

DfineryProperties.setUserProfile(DFUserProfile.GENDER, DFGender.MALE)
DfineryProperties.setUserProfile(DFUserProfile.MEMBERSHIP, "VIP")
...
Dfinery.shared().setUserProfile(key: DFUserProfile.GENDER, value: DFGENDER.MALE)
Dfinery.shared().setUserProfile(key: DFUserProfile.MEMBERSHIP, value: "VIP")
...
Dfinery.setUserProfile(DFUserProfile.GENDER, DFGender.MALE)
Dfinery.setUserProfile(DFUserProfile.MEMBERSHIP, "VIP")
...

3. Record login events

Logs login events.

Dfinery.getInstance().logEvent(DFEvent.LOGIN)
Dfinery.shared().logEvent(DFEvent.LOGIN)
Dfinery.logEvent(DFEvent.LOGIN)

User logout

This section shows the process of an identified user A logging out.

1. Record the logout event

Logs logout events.

Dfinery.getInstance().logEvent(DFEvent.LOGOUT)
Dfinery.shared().logEvent(DFEvent.LOGOUT)
Dfinery.logEvent(DFEvent.LOGOUT)

2. Initialize user identification information (optional)

If you do not want actions to be targeted to identified user A after he or she logs out, resetIdentity()initialize the user identification information by calling the API.

Please be careful when making calls, as initializing user identification information will interrupt any ongoing event flow and disconnect the terminal from the user.

If you still call, please call the event you want to reflect before calling the API to reflect the collected events.

DfineryProperties.resetIdentity();
Dfinery.shared().resetIdentity()
Dfinery.resetIdentity()

EXTERNAL_IDLogin using existing

This section EXTERNAL_IDshows how a user who has previously set up unified identity information can log in again using the same values.

1. Set user identification information

If the entered EXTERNAL_IDvalue is the same as the existing one, the terminal will be reconnected with the previously created identified user A.

DfineryProperties.setIdentity(DFIdentity.EXTERNAL_ID, "A")
Dfinery.shared().setIdentity(key: DFIdentity.EXTERNAL_ID, value: "A")
Dfinery.setIdentity(DFIdentity.EXTERNAL_ID, "A")

2. Record login events

The flow of events continues as before, with the event flow of identified user A continuing.

Dfinery.getInstance().logEvent(DFEvent.LOGIN)
Dfinery.shared().logEvent(DFEvent.LOGIN)
Dfinery.logEvent(DFEvent.LOGIN)

EXTERNAL_IDLog in using another

This section EXTERNAL_IDshows how a user who has set up unified identity information can log in using different values.

1. Set user identification information

If the entered EXTERNAL_IDvalue is different from the existing one, the SDK determines that the user is a different user and deletes all previously saved integrated ID information and sets a new one, and the terminal is connected to the identified user B.

DfineryProperties.setIdentity(DFIdentity.EXTERNAL_ID, "B")
Dfinery.shared().setIdentity(key: DFIdentity.EXTERNAL_ID, value: "B")
Dfinery.setIdentity(DFIdentity.EXTERNAL_ID, "B")

2. Setting up a user profile

The user profile is reflected to the identified user B.

DfineryProperties.setUserProfile(DFUserProfile.GENDER, DFGender.FEMALE)
DfineryProperties.setUserProfile(DFUserProfile.MEMBERSHIP, "VVIP")
...
Dfinery.shared().setUserProfile(key: DFUserProfile.GENDER, value: DFGender.FEMALE)
Dfinery.shared().setUserProfile(key: DFUserProfile.MEMBERSHIP, value: "VVIP")
...
Dfinery.setUserProfile(DFUserProfile.GENDER, DFGender.FEMALE)
Dfinery.setUserProfile(DFUserProfile.MEMBERSHIP, "VVIP")
...

3. Record login events

The flow of events changes to the flow of events for the newly identified user B.

Dfinery.getInstance().logEvent(DFEvent.LOGIN)
Dfinery.shared().logEvent(DFEvent.LOGIN)
Dfinery.logEvent(DFEvent.LOGIN)

Terminology

Anonymous user profile

If you do not set up user identification information, the user will be treated as an anonymous user. For example, this could be a user who visited your website but did not register, or a user who downloaded your mobile app but did not create a profile.

When a user is initially recognized through the SDK, a unique identifier generated by the SDK is issued and an anonymous user profile is created.

Identified user profiles

If you set a value for one of the identification information types below, EXTERNAL_IDyou will be treated as an identified user in DFINERY, and you will be able to identify the same user profile on multiple devices. You can also set additional information such as user email and phone number for more specific user identification.

an anonymous user profile
an identified user profile.