gzog / analytics-issues

Automatically exported from code.google.com/p/analytics-issues
0 stars 0 forks source link

setScreenName not working #458

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
---------------------------------------------------------------------------
NOTE: This issue tracking system is for Google Analytics developer products
only.
If you are not a developer/programmer visit:
http://www.google.com/analytics/support.html
---------------------------------------------------------------------------
Name of affected component: Mobile Tracking

Name of related library and version, if applicable (e.g. Android, iOS,
Snippets, etc.):

Issue summary:
setScreenName not working in GA v4.

Steps to reproduce issue:
1.
analytics.xml :
<screenName name="net.jul.activity.MainActivity">Home Screen</screenName>

2.
MainActivity.java : 
Tracker t = GlobalApplication.getApplication().getTracker();
t.setScreenName("net.jul.activity.MainActivity");
t.send(new HitBuilders.AppViewBuilder().build());

Expected output:
Collect to dashboard within "Home Screen"

Actual results:
Collect to dashboard within "net.jul.activity.MainActivity"

Original issue reported on code.google.com by jul841...@gmail.com on 3 Jul 2014 at 1:23

GoogleCodeExporter commented 8 years ago
At least, is should be made explicitly clear in this document:
https://developers.google.com/analytics/devguides/collection/android/v4/

and this document:
https://developer.android.com/reference/com/google/android/gms/analytics/Tracker
.html#setScreenName(java.lang.String)

... that Tracker.setScreenName(String path) does NOT resolve 'path' to the 
given screen name alias provided in the configuration xml for that tracker.

Original comment by rena.vil...@gmail.com on 18 Sep 2014 at 2:42

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
"analytics.xml" is intended to *automatically* create a screen name from an 
activity class name. You should be already setting a screen name, so no 
resolution is to be done.

Original comment by jperea.f...@gmail.com on 20 May 2015 at 12:36