android - Measuring compaign for mobile app -


i trying measure campaigns , traffics sources when deep linking mobile app, , following tutorial: https://developers.google.com/analytics/solutions/mobile-campaign-deep-link.

i have enabled deep links app content adding intent filters:

  <application     android:name="com.package.deeplinkingapp.myapp"     android:allowbackup="true" android:label="@string/app_name"     android:icon="@mipmap/ic_launcher" android:theme="@style/apptheme">      <meta-data         android:name="com.google.android.gms.version"         android:value="@integer/google_play_services_version" />     <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>     <service android:name="com.google.android.gms.analytics.campaigntrackingservice" />     <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"/>     <activity         android:name="com.package.deeplinkingapp.mainactivity"         android:label="@string/app_name" >         <!-- makes available launcher -->         <intent-filter>             <action android:name="android.intent.action.main" />             <category android:name="android.intent.category.launcher" />         </intent-filter>          <!-- makes openable browser -->         <!-- accept chrome links -->         <intent-filter>             <action android:name="android.intent.action.view"/>             <category android:name="android.intent.category.browsable" />             <category android:name="android.intent.category.default"/>             <data android:scheme="myscheme"                 android:host="deeplinking"                 android:pathprefix="/"/>         </intent-filter>         <!-- accept adb data flag -->         <intent-filter>             <action android:name="android.intent.action.view"/>             <category android:name="android.intent.category.browsable" />             <category android:name="android.intent.category.default"/>             <data android:scheme="myscheme"                 android:host="deeplinking" />         </intent-filter>     </activity>     <activity         android:name="com.package.deeplinkingapp.logindisplayactivity"         android:label="@string/title_activity_login_display" />  </application> 

after that, have tagged url this:

myscheme://deeplinking?utm_medium=referral&utm_source=monsite&utm_campaign=apps 

finally, i've sent data ga using setcampaignparamsfromurl method in oncreate method:

tracker tracker = ((myapp) getapplication()).gettracker(myapp.trackername.global_tracker);     tracker.setscreenname("page d'identification"); // définir la page      intent test = this.getintent();     uri data = test.getdata();     if (data == null) {system.out.println("no uri found");}     else{         system.out.println("uri = " + data);         string campaigndata = data.getencodedpath();     tracker.send(new hitbuilders.screenviewbuilder().setcampaignparamsfromurl(campaigndata).build());     }      tracker.send(new hitbuilders.screenviewbuilder().build()); 

the problem have no data in interface ga campaign, should precise i’ve done test in page: https://developers.google.com/analytics/solutions/testing-play-campaigns. , works source:

screen shot

did know why have nothing campaign in ga? did skip steps?

thank much.


Comments

Popular posts from this blog

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -