cwilson1031 / analytics-issues

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

Fully classified name of the activity is appearing in report instead of custom name #709

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
---------------------------------------------------------------------------
NOTE: This tool is not designed to request help. It is only for
reporting issues and requesting features for the Google Analytics
libraries.

If you are a developer and you need help, visit:
https://developers.google.com/analytics/help/

If you are not a developer and you need help, visit:
https://support.google.com/analytics
---------------------------------------------------------------------------
Name of affected component: Mobile Tracking

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

Issue summary:
I am doing automatic screen view tracking using Google analytic. I have set 
ga_autoActivityTracking to true in my xml file. I have also given custom names 
for all my activities to come in report as below.

<screenName name="com.xxxx.platform.android.ui.WelcomeActivity">My App 
WelcomeScreen</screenName>

GA is doing auto tracking for all my activities but when I go to Dashboard on 
web, instead of showing custom name like "WelcomeScreen", it always displaying 
fully classified name of the activity.

NOTE: If I set ga_autoActivityTracking to false and send the screen views 
manually from my activity then it is displaying custom name whatever I send.

Steps to reproduce issue:
1. Set ga_autoActivityTracking to true
2. List down custom screen name for all the activities in app using screenName 
field in xml
3. Launch the app and visit few activities
4. Go to GA dashboard and see that the screen tracking is captured but custom 
name given for screens are not displaying

Expected output:
Custom name given for the activities should appear instead of fully classified 
name of the activity

Actual results:
Fully classified name of the activity is appearing in report instead of custom 
name given

Notes:
Below is the meta tag added in application tag inside manifest file.

<meta-data
     android:name="com.google.android.gms.analytics.globalConfigResource"
     android:resource="@xml/global_tracker" />

Following is my global_tracker file.

<?xml version="1.0" encoding="utf-8"?>
<resources>

    <!-- The application name. Defaults to name specified for the application label -->
    <string name="ga_appName">My App</string>

    <!-- Enable automatic Activity measurement -->
    <bool name="ga_autoActivityTracking">true</bool>

    <!-- Enable automatic crash measurement (Android) -->
    <bool name="ga_reportUncaughtExceptions">true</bool>

    <screenName name="com.xxxx.platform.android.ui.WelcomeActivity">
                My App WelcomeScreen</screenName>
</resources>

Original issue reported on code.google.com by gpa...@welldocinc.com on 4 Aug 2015 at 6:06