Google App Invites: Tracking Invites

雨燕双飞 提交于 2019-12-06 21:13:42

Does this link help at all?: https://developers.google.com/app-invites/android/guides/analytics

Just checking, as there is a lot more to it than simple opening an account in Google Analytics.

I don't know if you found a way to solve your problem but I'm currently having the same problem. I see nothing on my Google Analytics dashboard. Moreover I do not see antyhing on logs when i'm using thoses commands in terminal

adb shell setprop log.tag.GAv4 DEBUG
adb logcat -s GAv4 

In thoses logs I can see custom events I implemented like favorite items...

Hit delivery requested [...........]
Hit sent to the device AnalyticsService for delivery

When I'm looking at widget called Invitation Actions Totals I can see it uses a regular expression on event categorie to match invitation.

So maybe we have to handle it manually. I mean, maybe we have to use HitBuilders.EventBuilder() to build and send custom event.

For example, when user send an invite we have to use:

Tracker t = ((AnalyticsApplication) activity.getApplication()).getDefaultTracker();

t.send(new HitBuilders.EventBuilder()
    .setCategory("invitation")
    .setAction("sent")
    .build());

And when user open the app from an invite:

Tracker t = ((AnalyticsApplication) activity.getApplication()).getDefaultTracker();

t.send(new HitBuilders.EventBuilder()
    .setCategory("invitation")
    .setAction("completed")
    .build());

And to be more accurate we could use the setLabel method to define the invite ID.

I haven't tested it so far. I don't know if we have to handle it this way or if AppInvite handle it automatically. But we probably have to handle it manually because we can use App Invite without Google Analytics...

Use Firebase Invites to drive app referrals and sharing through email or SMS

By combining the power of word of mouth with a frictionless and personalized onboarding flow, Firebase Invites help drive installs by enabling your users to share an app or their favorite in-app content with people they know. Firebase Invites help you optimize an important means of app discovery — according to a Google and Ipsos MediaCT survey, 52% of people say they discover apps through word of mouth.

Firebase Link

Referral link

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!