Skip to content
This repository has been archived by the owner on Oct 29, 2022. It is now read-only.

INSTALL_REFERRER / CampaignData does not work #51

Open
sumeetbasak opened this issue Sep 3, 2014 · 3 comments
Open

INSTALL_REFERRER / CampaignData does not work #51

sumeetbasak opened this issue Sep 3, 2014 · 3 comments
Assignees
Milestone

Comments

@sumeetbasak
Copy link

Hola!

I tried the latest build 2.0.7 ane and there is some good news and bad.

This is my basic setup apart from correctly adding the ane & swc in Flash CS6

The manifest has this for android:

<service android:name="com.google.analytics.tracking.android.CampaignTrackingService"/>
<receiver android:exported="true" android:name="com.google.analytics.tracking.android.CampaignTrackingReceiver">
    <intent-filter>
       <action android:name="com.android.vending.INSTALL_REFERRER" />
    </intent-filter>
</receiver>

The command used to broadcast the INSTALL_REFERRER is:

$ adb shell am broadcast -a com.android.vending.INSTALL_REFERRER -n air.test.third/.com.google.analytics.tracking.android.CampaignTrackingReceiver --es "referrer" "utm_source=testSource&utm_medium=testMedium&utm_term=testTerm&utm_content=testContent&utm_campaign=testCampaign"

The output

Here is the good news

I send a view request to testScreen and it is recorded in GA and i can see it in real time section.

here is the log cat of success:

    I/GAV2(25722): Thread[GAThread,5,main]: connecting to Analytics service
    D/GAV2(25722): Thread[main,5,main]: service connected, binder: android.os.BinderProxy@42432ae0
    D/GAV2(25722): Thread[main,5,main]: bound to service
    I/GAV2(25722): Thread[GAThread,5,main]: connect: bindService returned true for Intent { act=com.google.android.gms.analytics.service.START cmp=com.google.android.gms/.analytics.service.AnalyticsService (has extras) }
    I/GAV2(25722): Thread[main,5,main]: Connected to service
    *I/GAV2(25722): Thread[GAThread,5,main]: No campaign data found.*
    I/GAV2(25722): Thread[GAThread,5,main]: putHit called
    I/GAV2(25722): Thread[GAThread,5,main]: Sending hit to service
    I/GAV2(25722): Thread[GAThread,5,main]: putHit called
    I/GAV2(25722): Thread[GAThread,5,main]: Sending hit to service

However, the broadcasted INSTALL_REFERRER is never received (as highlighted in the log above)

Interestingly, it also throws this warning and info:

    W/GAV2: Thread[main,5,main]: Need to call initialize() and be in fallback mode to start dispatch.
    I/GAV2: Thread[main,5,main]: ExceptionReporter created, original handler is com.android.internal.os.RuntimeInit$UncaughtHandler

Moral of the story, i am unable to broadcast the INSTALL_REFERRER or unable to listen and capture it successfully.

Would you know why? I am ripping my hair off :(

@alebianco
Copy link
Owner

the install referrer is, let say, a beta feature ... in the sense that i never managed to get it to track properly.
your process is correct and it's the same I was following during the tests. if your app is in the store you should get some data in the appstore specific page about tracking referrers but for some reason those stats don't show up on the main analytics dashboards.

I'll revisit the whole thing on the next release hoping that the new SDK version in the meantime made things a bit easier/better.

@Mintonist
Copy link

"if your app is in the store you should get some data"

Tell me, please, if getReferrer() function from ANE work correctly or not? And where can I see "specific page about tracking referrers"?

Thank you

@sumeetbasak
Copy link
Author

Thanks @alebianco this is functionality all AIR app/game developers need to get more acquisition of users and also tracking. i have in the past months moved on to Unity3D in an endeavour to find better tools to get the idea developed effectively. I shall get back to it hopefully soon and test it out.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants