android


Android - Google analytics INSTALL_REFERRER not firing


I'm trying to track my campaigns on google analytics, I've followed the tutorial but it is not working :( This is my manifest:
<service android:name="com.google.android.gms.analytics.CampaignTrackingService" />
<receiver android:name="com.google.android.gms.analytics.CampaignTrackingReceiver"
android:exported="true"
android:permission="android.permission.INSTALL_PACKAGES">
<intent-filter>
<action android:name="com.android.vending.INSTALL_REFERRER" />
</intent-filter>
</receiver>
When I try to test this and I send this command through the console it does nothing:
$ shell am broadcast -a com.android.vending.INSTALL_REFERRER -n "MY_PACKAGE_NAME/com.google.android.gms.analytics.CampaignTrackingReceiver" --es referrer "utm_source=testSource&utm_medium=testMedium&utm_term=testTerm&utm_content=testContent&utm_campaign=testCampaign"
The only thing I see is that if I send it twice it says:
Ignoring duplicate install campaign
So I guess that the app receives the intent, apart from that, the app wakes when i send the intent.
The tutorial says that the app will log (if it is correct)
GAv4 : Received installation campaign: source=testSource
And if there is any problem:
Thread[GAThread,5,main]: No campaign data found.
But in my case it says nothing :(
Can anybody please help me??? Thanks!!
Before sending the broadcast, you need to enable debugging:
adb shell setprop log.tag.GAv4 DEBUG
Otherwise you will not see the message "Received installation campaign".
Your app must not be running. Just install the app but do not run it. See https://www.youtube.com/watch?v=DLx-7AgN1Jw at exactly [14:00]

Related Links

Firebase working without permission.INTERNET… How?
Android crop camera image
Action posted twice using Handler
Issue with the alarm manager class. I'm setting the alarm but it is not triggered on that time
Extra white space on SlidingTabLayout bar in Android 7.0 N?
onCharacteristicWrite() is being called, but it doesn't always write
Android Multi Screen Incompatibility
Basic Xamarin Android SDK Issue
android-apt & jack and jill
Clear sqlite db when application closes android
Google Speech to Text from Notification
Display “open with” dialog again in Android
SOAP for android
Image looks blur after resizing to 413*531 pixels in android
Android: Still plagued by 'Can not perform this action after onSaveInstanceState' in some cases
How to get String Name in VCF Format String Android via CamCard

Categories

HOME
notepad++
mstest
gradient
dojo
tail
jax-ws
rcloud
alamofire
openbugs
favicon
modbus-tcp
scsi
esoteric-languages
dynamic-sql
job-scheduling
smartclient
nim
spring-async
gulp-watch
mongoid6
scriptella
comparator
froala
nstimer
fractions
browser-sync
corenlp-server
cart
playstation-portable
installshield-le
dynamic-jasper
reverse
arduino-ide
slacktextviewcontroller
recurrent-neural-network
apns-php
verifiable-c
opensmpp
c9.io
odoo-website
vaadin-elements
dynamic-linq
xbmc
libgphoto2
vugen
tf
posixct
spring-data-couchbase
type-theory
bootstrap-tags-input
pocketsphinx-android
visual-studio-2008-sp1
cubism.js
autosar
adafruit
x-tag
hclust
stream-processing
spreadjs
aurora
html-to-pdf
ellucian-scribe
rasterize
lazybones
morton-number
django-urls
cgi-bin
slash
uncaught-typeerror
sip-server
insight.database
mdichild
angular-carousel
alternate
memset
fpdi
synapse
inputmismatchexception
unit-of-work
cmmi
scmmanager
css-reset
zope.interface
isa-swizzling
stress
agility.js
saxparseexception
creole
tmx
nhprof
presentation-layer
facebook-iframe
easyb
blender-2.49
burndowncharts
cldc
fail-fast-fail-early
application-planning
change-management
image-capture
commercial-application

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App