Branch.io: 为应用索引生成批量内容参考

Branch.io: Generating batch content reference for app indexing

我正在构建一个 LBS 应用程序,它列出了 5000 多个位置供人们搜索。

我也希望这些位置在 Google 上 be searchable,这样点击来自 google 的链接的人将被引导打开我的应用程序(如果已安装)。

问题是我是否必须为那里的每个位置生成一个 Branch Universal Object?如果是这样,我是否应该在每次启动我的应用程序时立即生成这些对象?

是的,您必须为每个位置生成 Branch Universal Object,并且您应该在用户每次执行共享操作时都这样做。

let lp: BranchLinkProperties = BranchLinkProperties()
lp.channel = "facebook"
lp.feature = "sharing"
lp.campaign = "content 123 launch"
lp.stage = "new user"
lp.tags = ["one", "two", "three"]

lp.addControlParam("$desktop_url", withValue: "http://example.com/desktop")
lp.addControlParam("$ios_url", withValue: "http://example.com/ios")
lp.addControlParam("$ipad_url", withValue: "http://example.com/ios")
lp.addControlParam("$android_url", withValue: "http://example.com/android")
lp.addControlParam("$match_duration", withValue: "2000")

lp.addControlParam("custom_data", withValue: "yes")
lp.addControlParam("look_at", withValue: "this")
lp.addControlParam("nav_to", withValue: "over here")
lp.addControlParam("random", withValue: UUID.init().uuidString) 

buo.showShareSheet(with: lp, andShareText: message, from: self) { (activityType, completed) in
  print(activityType ?? "")
}

此外,让我将 SEO 索引分解为两点:

  1. 当您使用 Branch 通用对象创建 Branch links 时,即当您请求在我们的 Branch 服务器上生成 link 时,我们会收到所有 link 数据,并且你收到一个 Branch link。现在,由于我们拥有与 Branch link 相关的所有数据,因此可以将其添加到站点地图中。

流量: 请求生成 Branch link -> 将 link 数据发送到 Branch 服务器 -> Branch 服务器发回 link -> 为站点地图生成添加的 Link

  1. 由于我们已经生成站点地图,要索引托管在您域 Branch 上的 Branch links 需要对 links 进行一些参与。这意味着,要在 Google 搜索排名分支 link 中索引 link 及其内容,需要对它们执行一些操作才能为 [=56= 创建索引排名]有约会。

流量: 分支 link(已在站点地图中)-> 在媒体平台上共享 -> 用户点击 link -> Google 开始索引搜索结果中的 link

以下是开始编制索引的步骤:

  1. 添加 Branch SDK:您可以在此处根据您的平台查看文档:https://docs.branch.io/pages/apps/ios/

  2. 设置深度 Link 路由:当用户单击分支 link 时,您需要将 link 用户深入到应用程序中的特定内容。请在此处参考我们的文档:您可以在此处查看文档 https://docs.branch.io/pages/apps/ios/#navigate-to-content

  3. 添加分支Link分享:请参考我们的文档在这里生成可分享的links:https://docs.branch.io/pages/viral/content-sharing/#generate-shareable-links

  4. 在 Branch 仪表板上启用 App Indexing:设置完所有内容后,您现在需要在 Branch 仪表板上启用 App Indexing,如此处文档中所述:https://docs.branch.io/pages/organic-search/firebase/#overview

此外,请注意,如果您没有移动网络,Branch link 索引最有用,否则 Google 在网络排名中始终优先于 Branch [=56] =]s.