传递哈希信息以进行 Facebook 高级匹配
概述
Facebook 提供了一种方法,供归因提供商和客户发送有关用户的哈希信息,以增强他们进行归因和分析匹配的能力。利用这些数据,Facebook 可以将转化事件与您的客户进行匹配,以最优化您的广告并扩大再营销受众群体。
For more information, please see Facebook's document on Advanced Matching.
传递到 Facebook 的字段
用户数据 | 参数 | 格式 | 例如 |
---|---|---|---|
邮箱 | em | [email protected] | |
名字 | fn | 小写字母 | john |
姓氏 | ln | 小写字母 | smith |
电话 | ph | 数字仅包含国家代码和地区代码 | 16505554444 |
外部 ID | external_id | 来自广告主的任何唯一 ID,例如会员身份 ID、用户 ID 和外部 Cookie ID。 | [email protected] |
性别 | ge | Single lowercase letter, f or m , if unknown, leave blank | f |
出生日期 | db | 含出生年份、月份和日期的全数字 | 19910526 表示 1991 年 5 月 26 日。 |
城市 | ct | 小写,不能包含空格 | menlopark |
州或省 | st | 两个小写字母的州或省代码 | ca |
邮政编码 | zp | 仅数字 | 94025 |
Country | cn | 两个小写字母的国家/地区代码 | us |
Set Hashed Information for the SDK
Branch provides methods in our iOS and Android SDKs to set the hashed information to pass for Facebook Advanced Matching (set before initializing the SDK). Once set, this parameter is attached to install, open, and events until cleared or the app restarts.
...
//set hash parameters for Facebook Advanced Matching
Branch.getInstance().addFacebookPartnerParameter(withName: "em", value: "11234e56af071e9c79927651156bd7a10bca8ac34672aba121056e2698ee7088")
...
//initialize Branch session
Branch.getInstance().initSession(...)
Branch branch = Branch.getAutoInstance(getApplicationContext());
branch.addFacebookPartnerParameterWithName("em", "194b86d986ad041666822dad7602f1a7bac1d9e286273e86141666ffb4b1909b");
Updated about 1 month ago