提交至 Google Play

提交至 Play Store

If you'd like Branch to collect the Google Advertising ID for advertising or tracking purposes instead of the Android ID, you must add Google Play Services to your app prior to release. After you complete these steps, Branch will handle the rest!

  1. 添加 implementation 'com.google.android.gms:play-services-ads-identifier:16+'' or greater version to the dependencies section of your build.gradle file. You might already have it.
  2. 在 Proguard 设置中添加以下行:
-keep class com.google.android.gms.ads.identifier.** { *; }

📘

为什么 Branch 使用 GAID?

Branch uses the GAID to identify users across our entire partner network, greatly increasing match accuracy rate. You can read more about this on the matching accuracy page. You do not need to perform these steps if you elect not to import Play Services or the Ads framework.

Google Play 分析

Branch 可以将 UTM 数据发送到 Google Play。当您在 Branch Links 上指定以下 key 时,我们会将其传递给 Google Play。

If you specify utm_source as a query parameter or key value pair on any Branch link, we will pass this to Google Play. If you don't specify a utm_source, we will use the ~channel specified on the Branch link. If there is no channel, the default will be Branch

The same applies for utm_campaign, except, we will fall back to ~campaign, and then not pass anything if ~campaign is not specified.