高级设置和更改链接域
更改高级设置
在 Branch 操作后台的 Link Settings 上,您可以更改高级链接设置:
- 将Match type设置为
unique
或者normal
(默认值)
a. 推荐:Normal
。选择Unique
意味着,当明显的痕迹只有唯一一个的时候,Branch 才会通过安装匹配来创建深度链接。例如,您和您的双胞胎都有一部具有相同 OS/版本的 iPhone 5s,并且你们各自点击同一应用的不同链接,然后同时打开该应用。这种情况下,除非勾选了 “Unique” 选项, 我们则无法创建深度链接。由于这属于非常特殊的情况,所以您可能不希望这类情况发生。 - 设置
Duration
为秒
a. 持续时间是指click
在被应用open
或者系统删除消耗之前将在我们的系统中生存的时间。修改此值将更改我们等待指纹识别用户的时间。如果用户在设置的持续时间内被指纹识别,深度链接数据将流入应用。默认过期时间是2小时(7200秒)。 - 设置
UTM tags
a. 推荐disabled
。如果启用此功能,Branch 将根据 UTM 参数自动设置频道,功能,campaign,标签和 $keywords。这仅适用于动态创建的链接,而不适用于通过操作后台 (Dashboard),API 或者 SDK 生成的链接。
UTM 参数 | Branch 参数 |
---|---|
utm_source | 渠道 |
utm_medium | 功能 |
utm_campaign | Campaign |
utm_content | 标记 |
utm_term | 关键字(在操作后台不可见 ) |
更改链接域
app.link 域就是 Branch 的默认域。注册操作后台后,将自动为您分配一个 app.link 域,该域具有一个多字符子域(例如: xxxxxx.app.link )。您可以将链接域更改为自定义 app.link 域、自定义子域或自定义根域。
自定义 app.link 域:
大多数 Branch 客户选择自定义 app.link 域,因为这样可以匹配您的 Branch 子域和您的品牌(例如: yourbrand.app.link )。
要自定义您的 app.link 域:
- Review and understand our domain change warning
- 前往 Branch 操作后台上的 Link Settings 页面。
- Change your subdomain. If you have any issues updating/changing your subdomain, click here to contact support.
Customize your app.link Subdomain
It is important to update your app.link subdomain before you begin your Branch app SDK integration; otherwise, you will need to make updates to your app’s associated domains and you may see strange link behavior.
Additionally, make sure the app.link subdomain that you want is available before making any changes to campaigns and app SDK updates.
Android App Links & Web-Only Limitations
Currently, we cannot support web-only link functionality (
$web_only
; links that only open the web even if the app is installed) and Android App Links together on custom root domains and subdomains. Android App Links force the app to open even if$web_only=true
is specified on custom root domains and subdomains.
使用自定义子域
如果您的企业对您使用的域有严格的限制,并且想要确保您的 Branch 域与其余相关子域相匹配,则可以使用自定义子域(例如:link.yourbrand.com)。
请注意:这需要您将域名的 CNAME 配置为 custom.bnc.lt,并且如果您的 Branch App SDK 已集成,则需要对应用内相关域名进行相应更改。
要使用自定义子域,请按如下操作:
- Review and understand Domain change warning
- Review and understand Custom domain warning
- Review and understand Custom domain debugging
- 前往 Branch 操作后台上的 Link Settings ,然后将链接域更改为自定义子域。
- 在自定义子域更新您的
CNAME
记录CNAME
=custom.bnc.lt
- 点击Link settings
Confirm
- 如果您通过 AWS 的 Route 53 配置域,请确保您是在 Registered Domains 标签(而不是 Hosted zones 部分)下编辑域名服务器。
使用自定义根域
一些(极少数)公司会为他们的 Branch domain 创建一个完全独立的域,即创建一个自定义根域(例如:yourbrand-link.com)。只有当您的公司未开启 app.link 或自定义子域选项时,才建议这样做。
请注意:这需要您更新域的 NS 记录。
要使用自定义根域,请按如下操作:
- Review and understand Domain change warning
- Review and understand Custom domain warning
- Review and understand Custom domain debugging
- Change your link domain to your custom root domain on Link settings
- 更新您的
NS
records on your custom root domain- These values are unique per app and can only be found in your Branch dashboard when changing your link settings.
- 点击Link settings
Confirm
- 如果您通过 AWS 的 Route 53 配置域,请确保您是在 Registered Domains 标签(而不是 Hosted zones 部分)下编辑域名服务器。
Please reach out to your Branch account manager to enable web-only links on custom domains.
问题排查
域更改警告
- 用于 Change link domain
- 从
app.link
到app.link
- 您的旧
app.link
深度链接将失效 - 您的旧
app.link
深度链接接将前往 File Not Found 网站,而不是打开您的应用。 - Your new
app.link
deep links will open your app after you update your code to append the new link domain - 如果您的旧
app.link
处于活动状态,建议切换到custom link domain instead
- 您的旧
- 从
app.link
到custom link domain
- 您的旧
app.link
深度链接仍然有效 - Your new
custom link domain
deep links will open your app after you update your code to append the new link domain
- 您的旧
- 从
custom link domain
到custom link domain
- 您的旧
custom link domain
深度链接将失效 - Your new
custom link domain
deep links will open your app after you update your code to append the new link domain
- 您的旧
- 从旧版
bnc.lt
到custom link domain
或者app.link
- 您的
bnc.lt
和custom link domain / app.link
深度链接都可以使用 - Your new
custom link domain / app.link
deep links will open your app after you update your code to append the new link domain
- 您的
使用自定义域更改您的应用配置
添加Intent Filter on Android
添加new key in your apps Info.plist on iOS
自定义域警告
- 用于 Change link domain
- 如果要使用自己的域进行深度链接,则
custom link domain
的NS
或者CNAME
记录需要指向 Branch - 每当您更改一个域的
NS
或者CNAME
记录时,Branch 将成为该域的权威注册商。这将授予 Branch 对域的控制权,并且您将失去对该custom root domain
或者custom subdomain
的所有访问权限。该网页将变为空白,并且该域的控件将更改为 Branch - Branch 将使用您的域来路由所有深度链接的流量。Branch 还将托管您的 AASA 文件和 SSL 证书
- If you have content on your
custom root domain
(e.g. https://example.com/), Branch recommends using an unusedcustom subdomain
instead (e.g. https://link.example.com/)
自定义域调试
- 用于 Change link domain
- 您可以使用
dig ns <domain>
或者dig cname <domain>
测试您的域记录更改 - 我们建议您选择一个固定的域或者子域用于 Branch,切换可能会导致现有链接出现严重的问题
- 如果您通过 AWS 的 Route 53 配置域,请确保您是在Registered Domains 标签而不是Hosted zones section 下编辑域名服务器。
- 您无法使用主站域名来托管 Branch Link
- 添加自定义链接域时,请勿包含
www
- 如果您已经为域名设置了 CAA 记录,请将 letsencrypt.org 添加到列表中
Updated 2 months ago