gpt4 book ai didi

android - 谷歌应用邀请 : Tracking Invites

转载 作者:行者123 更新时间:2023-11-30 01:56:16 26 4
gpt4 key购买 nike

我正在尝试理解指南的这一部分(https://developers.google.com/app-invites/android/guides/app):

Tracking Invitations

After your app has received an invitation and taken the intended actions, it should call the updateInvitationOnAppInstalled method to mark the invitation as successful:

private void updateInvitationStatus(Intent intent) {
String invitationId = AppInviteReferral.getInvitationId(intent);

// Note: these calls return PendingResult(s), so one could also wait to see
// if this succeeds instead of using fire-and-forget, as is shown here
if (AppInviteReferral.isOpenedFromPlayStore(intent)) {
AppInvite.AppInviteApi.updateInvitationOnInstall(mGoogleApiClient,invitationId);

}

// If your invitation contains deep link information such as a coupon code, you may
// want to wait to call `convertInvitation` until the time when the user actually
// uses the deep link data, rather than immediately upon receipt
AppInvite.AppInviteApi.convertInvitation(mGoogleApiClient, invitationId);
}

The code above requires a connected GoogleApiClient with AppInvite.API enabled.

我看到您可以使用 AppInvite.API 跟踪应用邀请,但我看不到一种可以在跟踪后查看统计信息的方法。

AppInviteApi 仅说明以下内容:

The main entry point for interacting with AppInvite invitations. This class provides a method to update invitation status after receiving an invitation id after app installation.

Link to AppInviteApi docs

如何查看我正在跟踪的内容?我开了一个 Google Analytics 帐户,但它只会在 1-2 天内显示数据,我怀疑它是否会在那里显示,据我所知,使用 Google App Invites 时,Google Analytics 是可选的。

最佳答案

此链接有帮助吗?:https://developers.google.com/app-invites/android/guides/analytics

只是检查一下,因为它比简单地在 Google Analytics(分析)中开设一个帐户要多得多。

关于android - 谷歌应用邀请 : Tracking Invites,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32164736/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com