筛选项

配置重定向和链接域 (link domain) 的链接行为

概述

您可以设置默认的链接行为。如果您在“自定义链接行为”中更改设置,那么您为默认链接行为设置的值通常会覆盖每个深度链接。
本指南介绍了如何配置链接域 (link domain) 以及 Branch Link 的默认设置。

1. 默认链接行为

这个设置是必需的。
Configuration页面的General标签中Required Redirects section,为没有指定重定向的移动设备输入后备 URL。

2. Android 默认链接行为

这个设置是必需的。

  1. Configuration page, in the General tab, under the Required Redirects section, go to the Android Redirects section.
  2. 使用这些设置可以控制 Android 上深度链接的默认行为。
  • 注意:Play 商店适用于已发布的应用。如果无法找到您的应用,或者它是本地/开发构建,请使用“自定义 URL” 选项。
  1. 如果您选择“ 启用 App Links ,则需要生成 SHA256 证书指纹以执行以下操作:
  2. 前往 keystore file (用于在部署 APK 文件之前构建其调试和生产版本)
  3. 运行keytool -list -v -keystore my-release-key.keystore以生成指纹
    *指纹示例:
    AA:C9:D9:A5:E9:76:3E:51:1B:FB:35:00:06:9B:56:AC:FB:A6:28: CE:F3:D6:65:38:18:E3:9C:63:94:FB:D2:C1添加到您的 Branch 操作后台 (Dashboard)

3. iOS 默认链接行为

这个设置是必需的。

  1. Configuration 页面的General tab, under the Required Redirects section, navigate to the iOS Redirect section.
  2. 使用这些设置可以控制 iOS 上深度链接的默认行为。
  3. 如果选择Enable Universal Links ,则需要输入 Apple App Prefix ,它可以在 Apple Developer Portal 中找到您的应用。
  4. If you would like to use deferred deep linking via NativeLink™, you can Enable NativeLink™. Users will be presented with a deepview that enables them to continue their user experience in an app by clicking on the main CTA with the following configurations:
    - All iOS Traffic (All Browsers)
    - All iOS 15+ Traffic (All Browsers)
    - Only iOS Private Relay Traffic (Safari & In-App Safari Browsers)
    Once enabled, follow the instructions in our developer documentation to use NativeLink™.

❗️

在< iOS 12.3上进行 App Store 重定向

对于在低于12.3的 iOS 版本上运行的任何用户,将首先出现一个弹出窗口,提示用户在重定向到 App Store 时在 App Store 中打开。用户必须点击 OK 才能完全路由到 App Store 以下载您的应用。由于此弹出窗口是 iOS 固有的,它无法从用户流程中删除。

4. 社交媒体预览

  1. Configuration 页面的General 选项卡中,前往Social Media Preview section。
  2. 填写下列字段,以自定义在社交媒体分享或者重新分享时安装页面链接的外观:
    a. Link Title
    b. Description
    c. Thumbnail Image

5. 链接域 (link domain)

  1. Configuration 页面的General 选项卡中,前往Link Domain section。
  2. Choose a link domain which will be used for all your links:
    a. Use My Own Domain
    1. If you choose to use your own domain, enter your domain. The link domain is the website that hosts your deep links, it is not a deep link.
    b. Change My app.link Subdomain
    1. Here is where you can see and copy the current subdomain for your link domain. If you want to change it, click Change my app.link Subdomain.
    2. Enter in a new subdomain.
    3. Click Get when you're done.
    If you have already changed your subdomain once, you will not have the option to change it again. If you need to make changes to the subdomain contact our Support team.

查看域更改警告

  1. app.linkapp.link
    a. 您的旧app.link深度链接将失效。
    b. 您的旧app.link深度链接将前往 File Not Found 网站,而不是打开您的应用。
    c. 只有在您更新代码以附加新的链接域 (link domain) 后,您的新app.link深度链接才会打开您的应用。
    d. 如果您的旧app.link处于活动状态,建议改用custom link domain
  2. app.linkcustom link domain
    a. 您的旧app.link深度链接仍然有效。
    b. 只有在您更新代码以附加新链接域之后,您的新custom link domain深度链接才会打开您的应用。
  3. custom link domaincustom link domain
    a. 您的旧custom link domain深度链接将失效。
    b. 只有在您更新代码以附加新链接域之后,您的新custom link domain深度链接才会打开您的应用。
  4. 从旧版bnc.ltcustom link domain
    a. 您的bnc.ltcustom link domain深度链接都可以使用
    b. 只有在您更新代码以附加新链接域 (link domain) 之后,您的新custom link domain深度链接才会打开您的应用。

If you wish to change your link domain, follow the steps outlined here.

6. 高级设置

  1. Configuration 页面的General 选项卡中,前往Advanced Settings section。
  2. 对于“ URI Scheme Deep Link Mode, 选择器允许您控制 Universal Links 和 Android App Links 失效时 Branch 使用 URI scheme 打开应用的方式和时间。
    • Conservative 模式永远不会在错误消息的风险存在的情况下使用 URI scheme。我们建议您在集成中测试应用的安装/重新安装时进行设置,以防止加剧 Intelligent Mode 可能导致的 URI 错误。
    • Intelligent mode is recommended,并使用 Branch 数据安全地使用 URI scheme。如果卸载了该应用,在某些浏览器中出现错误消息的风险很小。
    • Aggressive 会在所有地方强制使用 URI scheme,从而导致没有该应用的用户在某些浏览器中看到错误消息。
  3. Limit link redirection to specific web domains across the entire deep link platform with a Redirect Allowlist. List each of the domains you want to limit redirection to by a comma. We also support a “*” for wildcard subdomains. Configuring this setting ensures that your links cannot be hijacked by malicious third parties to redirect to unauthorized content, malware, or fraudulent sites.
1240

Redirect Allowlist

  1. 选择您的Match Type

    • Normal 我们推荐。
    • 选择Unique 意味着,当明显的痕迹只有唯一一个的时候,Branch 才会通过安装匹配来创建深度链接。例如,您和您的双胞胎都有一部具有相同 OS/版本的 iPhone 5s,并且你们各自点击同一应用的不同链接,然后同时打开该应用。这种情况下,除非勾选了 “Unique” 选项, 我们则无法创建深度链接。由于这属于非常特殊的情况,所以您可能不希望这类情况发生。
  2. 此外,您可以启用/禁用以下功能:

    a. Use UTM tags for analytics (for dynamically-created links)—默认情况下,此功能处于禁用状态。如果启用此功能,Branch 将根据 UTM 参数自动设置渠道,功能,campaign,标签和$keywords。这仅适用于动态创建的链接,而不适用于通过操作后台 (Dashboard),API 或者 SDK 生成的链接。

    b. Analytics mapping with UTM—默认情况下,此功能处于启用状态。默认值:重定向到网页 URL 时,Branch 自动将以下 Branch Link 分析标记中的任何值作为 UTM 参数[~campaign -> utm_campaign, ~channel -> utm_source, ~feature -> utm_medium]传递。如果已在被重定向的 URL 上检测到这些 UTM 参数,Branch 则不会覆盖它们。

    c. Enable retrieving Last Attributed Touch Data via SDKs—默认情况下,此功能处于禁用状态。允许从客户端检索最后归因触点数据。

UTM 参数Branch 参数
utm_source渠道
utm_medium功能
utm_campaignCampaign
utm_content标记
utm_term关键字(在操作后台不可见 )

7. 桌面应用默认链接行为

  1. Configuration 页面的General 选项卡中,前往Desktop Redirects section。
  2. 对于Default Desktop ,选择以下任意一项:
    a. Branch-hosted SMS Landing Page
    b. Custom Landing Page
  3. 对于Mac Desktop ,请输入以下内容:
    a. Mac URI Scheme
    b. Mac App Store URL
  4. 对于Windows Desktop
    a. Windows URI Scheme
    b. Windows Store URL
    c. Windows Package Family Name

注意:如果在点击链接时未安装该应用,我们将以该顺序回退到桌面或者默认 URL。

8. 高级移动重定向

Amazon Fire 默认链接行为

  1. Configuration 页面的General 选项卡中,前往Advanced Mobile Redirects section。
  2. Fire Redirects section,输入Amazon Fire ASIN 或者 Custom URL

iPad 重定向链接行为

  1. Configuration 页面的General 选项卡中,前往Advanced Mobile Redirects section。
  2. iPad Redirects section,如果您的 iPad 应用具有不同的 App Store ID,或者希望回退到 iPad上的其他 URL,请在此处指定任一 URL。

Android Tablet 重定向链接行为

  1. Configuration 页面的General 选项卡中,前往Advanced Mobile Redirects section。
  2. Android Redirects section,如果您的平板电脑应用使用其他 Play 商店软件包,或者希望使用 Android 平板电脑上的其他 URL,请在此处指定任一 URL。

微信重定向链接行为

  1. Configuration 页面的General 选项卡中,前往Advanced Mobile Redirects section。
  2. 由于微信不支持从 iOS 或者 Android 上的应用进行深度链接,因此,如果您选择回退到自定义 URL,则可以在此处输入。

常见问题