I am trying to check the in-app store tracking option in my Android app.
I updated the manifest file with the following code
<receiver android:name="com.google.android.gms.analytics.AnalyticsReceiver"
android:enabled="true">
<intent-filter>
<action android:name="com.google.android.gms.analytics.ANALYTICS_DISPATCH" />
</intent-filter>
</receiver>
<service android:name="com.google.android.gms.analytics.AnalyticsService"
android:enabled="true"
android:exported="false"/>
<receiver android:name="com.google.android.gms.analytics.CampaignTrackingReceiver"
android:exported="true">
<intent-filter>
<action android:name="com.android.vending.INSTALL_REFERRER" />
</intent-filter>
</receiver>
<service android:name="com.google.android.gms.analytics.CampaignTrackingService" />
I pass the following command through terminal
adb shell am broadcast -a com.android.vending.INSTALL_REFERRER -n com.example.pranav.ui/com.google.analytics.tracking.android.CampaignTrackingReceiver --es "referrer" "utm_source=pranav&utm_medium=testMedium&utm_term=testTerm&utm_content=testContent&utm_campaign=testCampaign"
I get the following response from adb shell
Broadcasting: Intent {act = com.android.vending.INSTALL_REFERRER CMP = com.example.pranav.ui / com.google.analytics.tracking.android.CampaignTrackingReceiver (there are additional functions)} Broadcast completed: result = 0
Everything happens up to this point according to the guide provided at https://developers.google.com/analytics/solutions/testing-play-campaigns
But instead of getting the campaign parameter, I get the following in Logcat
AnalyticsReceiver . , Google Play.