使用 branch.io sdk 避免重复链接
Avoiding duplicated links with branch.io sdk
我们已经在我们的应用程序中实现了 Branch.IO,并且运行良好。我们可以生成 deeplinks
并在平台、IOS 和 Android 上获取数据。
但是我们对重复的link有疑问。
看,我们在 IOS 上生成了 link,然后生成了另一个 link 具有相同的 canonical_identifier 在 Android 上。
我们期望 Branch.io 应该 return 与 Url 相同,但这并没有发生。
我们正在尝试这样做以避免重复的条目,并且可能对 link 有更多的控制。
下面,来自两个生成的 links 的数据可能会有所帮助:
生成于 Android :
"~creation_source":2,
"$og_title":"Casamento <3",
"$identity_id":517787482772223550,
"~feature":"Share",
"source":"android",
"$og_description":"Eder Baldrighi e Angelina Jolie - 04/07/2018",
"$one_time_use":false,
"$canonical_identifier":"giftlist+11",
"$publicly_indexable":"true",
"~id":"518054928284095986",
"type":"giftlist",
"+url":"XXXXXX.test-app.link/ODzOUGnRqM",
"value":"11"
生成于 IOS:
"$locally_indexable":true,
"~creation_source":3,
"$og_title":"Casamento <3",
"custom_data":"yes",
"$identity_id":517745509809925500,
"$og_description":"Eder Baldrighi e Angelina Jolie - 04/07/2018",
"$one_time_use":false,
"$canonical_identifier":"giftlist+11",
"$exp_date":0,
"$publicly_indexable":true,
"~id":"518045049171363141",
"type":"giftlist",
"+url":"XXXXXX.test-app.link/HkkcqLzOqM",
"value":"11"
亚伦来自 Branch here! By design, we do not merge link URLs based on link data alone like $canonical_identifier
s. Any link generated via the SDK, API, or Dashboard that is created with our v1/url endpoint will generate a new link URL unless you are updating a link.
但是,分析将统一在 Branch 仪表板上。例如,我们检测到相同的内容链接将显示在 Content Analytics page merged into one piece of content based on link data like $canonical_identifier
. Source Analytics 中,将根据 ~channel
、~campaign
和 ~tags
等分析标签合并链接。 =17=]
我们已经在我们的应用程序中实现了 Branch.IO,并且运行良好。我们可以生成 deeplinks
并在平台、IOS 和 Android 上获取数据。
但是我们对重复的link有疑问。
看,我们在 IOS 上生成了 link,然后生成了另一个 link 具有相同的 canonical_identifier 在 Android 上。
我们期望 Branch.io 应该 return 与 Url 相同,但这并没有发生。
我们正在尝试这样做以避免重复的条目,并且可能对 link 有更多的控制。
下面,来自两个生成的 links 的数据可能会有所帮助:
生成于 Android :
"~creation_source":2,
"$og_title":"Casamento <3",
"$identity_id":517787482772223550,
"~feature":"Share",
"source":"android",
"$og_description":"Eder Baldrighi e Angelina Jolie - 04/07/2018",
"$one_time_use":false,
"$canonical_identifier":"giftlist+11",
"$publicly_indexable":"true",
"~id":"518054928284095986",
"type":"giftlist",
"+url":"XXXXXX.test-app.link/ODzOUGnRqM",
"value":"11"
生成于 IOS:
"$locally_indexable":true,
"~creation_source":3,
"$og_title":"Casamento <3",
"custom_data":"yes",
"$identity_id":517745509809925500,
"$og_description":"Eder Baldrighi e Angelina Jolie - 04/07/2018",
"$one_time_use":false,
"$canonical_identifier":"giftlist+11",
"$exp_date":0,
"$publicly_indexable":true,
"~id":"518045049171363141",
"type":"giftlist",
"+url":"XXXXXX.test-app.link/HkkcqLzOqM",
"value":"11"
亚伦来自 Branch here! By design, we do not merge link URLs based on link data alone like $canonical_identifier
s. Any link generated via the SDK, API, or Dashboard that is created with our v1/url endpoint will generate a new link URL unless you are updating a link.
但是,分析将统一在 Branch 仪表板上。例如,我们检测到相同的内容链接将显示在 Content Analytics page merged into one piece of content based on link data like $canonical_identifier
. Source Analytics 中,将根据 ~channel
、~campaign
和 ~tags
等分析标签合并链接。 =17=]