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

detect Bluetooth Discovery is on?
How to span and stretch columns in Android
Resuming to the main activity
Yahoo messenger API - error when open a long-lived connection for Comet-style notification
How to make an Android progressbar with rounded loaderbar?
ListView is very laggy - Android
How can I use Turkish characters like 'ş ç ı ö' in an Android TextView?
What is this feature of IntelliJ IDEA (set build target in project's properties)?
Loading Image from URL. SkImageDecoder::Factory returned null
Saving Image Files SQL database
Google map is not loading in android samsung ace mobile
TextView background is stretching
Android, Share library dependency
How to delete duplicated database records?
Is there some way to get the SQL string generated by SQLiteDatabase.query()?
display contact image in image view

Categories

HOME
asp.net-web-api
embedded
xml
azure-stream-analytics
time-complexity
alexa-skills-kit
case
zend-framework
grafana
appcelerator
simulink
gluon-mobile
character
p2p
datastage
speech-synthesis
nancy
gkturnbasedmatch
magnetic-cards
intershop
symfony-console
sigma.js
articulate-storyline
string-concatenation
highstock
pic32
opentk
stackexchange
jquery-multiselect
fable-f#
motion-detection
angular-translate
android-things
zend-debugger
dynamic-jasper
apiary.io
watchman
google-earth-engine
node-mssql
gdata
unordered-map
apriori
parser-generator
install.packages
clang++
apache-directory
dapper-simplecrud
mesosphere
ovf
xbmc
yii2-api
user-defined-fields
backbone-collections
android-testing
check-mk
reachability
vcloud-director-rest-api
grails-plugin
hadoop-2.7.2
myspace
ng-grid
ellucian-scribe
dynatree
avisynth
fiware-monitoring
pypiserver
wiredep
eoferror
vacuum
grouping-sets
mass-assignment
browserify-shim
crowd
jqmodal
build-script
memset
mysql-error-1044
inputmismatchexception
jeromq
dtmf
ebay-lms
rolify
abstract-data-type
epiceditor
joomla-template
fb.ui
qtconcurrent
saleslogix
paginator
lambdaj
node-redis
w3c-geolocation
inline-formset
echo3
fdf
linfu-dynamicproxy

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