匿名ユーザー
ゲスト訪問者のように、ログインせずにウェブサイトやアプリケーションにアクセスするユーザは、匿名ユーザとして認識されます。これらのユーザには
external_ids
はありません。これらは、Braze API を使用してユーザプロファイルを更新するために使用されますが、まだデータポイント が割り当てられており、セグメント内でターゲットにすることができます。
匿名ユーザーがウェブサイトまたはアプリケーションにアクセスすると、Braze SDK はそれらを作成し、「匿名」ユーザープロファイルに割り当てます。ユーザーがブラウズする間、SDKは、使用状況情報、デバイス情報などの匿名ユーザープロファイルのデータを自動的にキャプチャします (カスタム属性およびカスタムイベントを設定した場合)。
キャプチャされた匿名ユーザーには、次の操作を実行できます。
- ユーザーがログインする前にメッセージを送信する
- ログインする前にユーザープロファイルを収集するため、関連データを見逃すことはありません
- ユーザーがプロフィールの一部しか完成しないときに、メッセージでプロフィールの完成を促す
- ログイン時にユーザーのプロフィールを入力して、他のプラットフォームでのメッセージングをキャンセルできるようにします(ユーザーがアプリの注文をすでに行ったときに「1st app order での送料無料」メッセージを送信しないなど)。
- プロフィール作成やカートの確認、他のアクションを促すことで離脱しようとしているユーザーと関与する
CDI の仕組み
After you integrate the Braze SDK, users who launch your app for the first time will be considered “anonymous” until you call the changeUser
method and assign them an external_id
. Once assigned, you can’t make them anonymous again. However, if they uninstall and reinstall your app, they will become anonymous again until changeUser
is called.
If a previously-identified user starts a session on a new device, all of their anonymous activity will automatically sync to their existing profile after you call changeUser
on that device using their external_id
. This includes any attributes, events, or history collected during the session on the new device.
For a full walkthrough, see Setting User IDs.
ユーザーエイリアスの割り当て
Although anonymous users don’t have external_ids
, you can assign them a user alias instead. You should assign a user alias when you want to add other identifiers to the user but don’t know what their external_id
is (for example, they aren’t logged in). With user aliases, you also can:
- Use the Braze API to log events and attributes associated with anonymous users
- Use the External User ID is blank segmentation filter to target anonymous users in your messaging
For a full walkthrough, see Braze SDK: Setting a user alias.
匿名ユーザーのマージ
匿名ユーザープロファイルは、他のユーザープロファイルと同じ電話番号またはメールアドレスを持つ重複である場合があります。その重複の1つが識別されたユーザープロファイルである場合があります。これらの重複は、POST: Merge Users エンドポイント を使用するか Braze プラットフォームのマージツール (例えば、ルールベースのマージ) の1つを使用して、1つのユーザープロフィールに統合することができます。
ユースケース
セグメント内の匿名ユーザーを対象にする
匿名ユーザにはexternal_id
がないため、セグメンテーションフィルタ外部ユーザID が空白 を使用して、一括でターゲットを設定できます。さらに正確にするために、ターゲットにする匿名ユーザーにカスタム属性を追加し、そのためにフィルタリングすることができます。
たとえば、カスタム属性”is_lead_profile”を各匿名ユーザープロファイルに割り当てるとします。次のフィルターの一方または両方を使用して、これらのプロファイルをターゲットにできます。
- 外部ユーザー ID が空白である
- “is_lead_profile” がtrue
匿名ユーザーからのチェックアウトデータのキャプチャ
匿名ユーザー (またはゲスト訪問者) のチェックアウトデータをキャプチャするには、チェックアウトプロセス中にユーザーエイリアスプロファイルを作成します。匿名ユーザーが Web キャプチャフォームを使用してチェックアウトする際に、API 呼び出しをトリガーしてユーザーエイリアスプロフィールを作成し、購入イベントをログに記録します。作成したユーザープロファイルは、Braze API を使用して更新できます。
Web キャプチャフォームが送信されたときに生成されるペイロードの例を次に示します。
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{
"purchase":[
{
"user_alias": {"alias_name": "Joedoe", "alias_label": "full_name"},
"app_id": "11dk3k9d-2183-3948-k02b-kw3938109k12od",
"product_id": "jacket",
"currency": "USD",
"price": 80.00,
"time": "2025-01-05T19:20:30+01:00",
"properties": {
"color": "brown",
"monogram": "ABC",
"checkout_duration": 180,
"size": "Small",
"brand": "Natural Essence"
}
}
]
}