cmackay / google-analytics-plugin

Cordova Google Analytics Plugin for Android & iOS
Apache License 2.0
89 stars 43 forks source link

Google Play Campaign Attribution #42

Closed cauboy closed 9 years ago

cauboy commented 9 years ago

According to the docs, some lines must to be added to the AndroidManifest for Google Play Campaign Attribution.

Are there any reasons why those are not added?

See: https://developers.google.com/analytics/devguides/collection/android/v4/campaigns And an implementation here: https://github.com/appfeel/analytics-google/blob/master/plugin.xml#L31

Excerpt:

  1. Add the Google Analytics receiver to your AndroidManifest.xml file. To add the Google Analytics receiver to the manifest, copy and paste the following markup:
<!-- Used for Google Play Store Campaign Measurement-->
<service android:name="com.google.android.gms.analytics.CampaignTrackingService" />
<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>
cmackay commented 9 years ago

You only add entries for the features you need. I have not used Google Play Campaign Attribution but if you want to use that give it a try. It should work.