JavaScript Cant make campaigns in cordova work with analytics v4

I am trying to make campaigns for my Cordova app.

I am using this plugins:

https://github.com/Anu2g/google-analytics-plugin.git Which have support for campaigns

https://github.com/8zrealestate/android-referrer-plugin.git For retrieve the referrer, so I can not find the way to get it in the analytics plugin

https://github.com/chrisekelley/AppPreferences.git To get the refferrer saved in the app preferences into my javascript.

For context, i am using Cordova 4.3.0 and google analytics v4

My manifests looks like this:

<receiver android:exported="true" android:name="com.eightz.mobile.cordova.plugin.android.referrer.Receiver">
            <intent-filter>
                <action android:name="com.android.vending.INSTALL_REFERRER" />
            </intent-filter>
</receiver>

And I am trying to follow this guide to make it work:

https://developers.google.com/analytics/solutions/testing-play-campaigns

I have tryied with and without this service in the manifest

<service android:name="com.google.android.gms.analytics.AnalyticsService"
 android:enabled="true"
 android:exported="false"/>

I also have tried all kind of am broadcasts

    am broadcast -a com.android.vending.INSTALL_REFERRER \
-n my.app/com.eightz.mobile.cordova.plugin.android.referrer.Receiver \
--es "referrer" "textinreferrer"

They work, they return

Broadcasting: Intent { act=com.android.vending.INSTALL_REFERRER cmp=my.app/com.eightz.mobile.cordova.plugin.android.referrer.Receiver (has extras) }
Broadcast completed: result=0

But in the logcat I get CampaignTrackingReceiver is not registered error, even with the app closed.

I have also tryied with GAv3 and GAv4 receivers, but I am unable to make the campaignTrackingReceiver work, i am still getting

CampaignTrackingReceiver is not registered, not exported or is disabled. Installation campaign tracking is not possible. See http://goo.gl/8Rd3yj for instructions.

Or simply nothing.

somebody have any ideas? I am missing something? Thanks in advance

Answer:1

I have a GeoJSON dataset which has points and polygons. I have a simple Leaflet code which reads them into a map, like this: var MyLayer = new L.GeoJSON.AJAX("/UrbanSyntax/Desarrollo/twitter /data/...

I have a GeoJSON dataset which has points and polygons. I have a simple Leaflet code which reads them into a map, like this: var MyLayer = new L.GeoJSON.AJAX("/UrbanSyntax/Desarrollo/twitter /data/...

  1. geojson convert polygon to linestring
  2. geojson convert polygon to point
  3. convert geojson to polygon
  4. convert multipolygon to polygon geojson
  5. leaflet convert geojson to polygon

I am trying to create a D3 sunburst chart based on this example: https://bl.ocks.org/maybelinot/5552606564ef37b5de7e47ed2b7dc099 I'd like the arcs created to close the full circle but they don't. ...

I am trying to create a D3 sunburst chart based on this example: https://bl.ocks.org/maybelinot/5552606564ef37b5de7e47ed2b7dc099 I'd like the arcs created to close the full circle but they don't. ...

I am new to css especially combinators but I am trying to change css of a p element when hovering over a h1 element both of which are in a div of class "a" but I can't figure out how to do it.Here is ...

I am new to css especially combinators but I am trying to change css of a p element when hovering over a h1 element both of which are in a div of class "a" but I can't figure out how to do it.Here is ...

  1. change class when clicked
  2. change class when scroll
  3. change class when hover
  4. css change class when hover
  5. jquery change class when click

new Date(Infinity) is too far, and so is new Date(Number.MAX_SAFE_INTEGER - 1). I need this so I can run astronomical simulations on a Node cluster. JK, I'm just messing around, and SO imposed a ...

new Date(Infinity) is too far, and so is new Date(Number.MAX_SAFE_INTEGER - 1). I need this so I can run astronomical simulations on a Node cluster. JK, I'm just messing around, and SO imposed a ...