UpendraSingh / analytics-issues

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

You can not choose the Google Analytics Account when generating json configuration file for Android app #860

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 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:
Provide a brief summary of the issue you're experiencing.

Steps to reproduce issue:
1.Create project A in the google developer console and analytics account 
A-analytics

2.Get a json configuration file for project A using the A-analytics account at 
this link: 
https://developers.google.com/analytics/devguides/collection/android/v4/

3.Create project B in the google developer console and analytics account 
B-analytics

4. Try to generate a json configuration file for project B using the 
B-analytics account at the same link 
https://developers.google.com/analytics/devguides/collection/android/v4/

Expected output:
I expect to be able to choose the analytics account that I want to associate 
with my app when generating the json configuration file

Actual results:
The first analytics account that I am associated with(e.g. A-analytics) will be 
selected by default and there is no way to choose another account

Notes:
See attached screenshot.

Original issue reported on code.google.com by beniamin...@kesolutions.biz on 25 Jan 2016 at 1:32

Attachments:

GoogleCodeExporter commented 8 years ago
This is currently working as intended even though it may not seem so. There may 
be an update to fix this but in the meantime you can just copy an existing 
Configuration file and edit it. The only thing you need to change is the 
Analytics tracking ID value.

For example, in the configuration JOSN file you'll see an entry like:
 "services": {
        "analytics_service": {
          "status": 2,
          "analytics_property": {
            "tracking_id": "UA-XXXXX-YY"
          }
        },

Replace the UA-XXXXX-YY value with the property ID (for the GA Account) you 
want to use. You can use the Account Explorer to find the correct property ID: 
https://ga-dev-tools.appspot.com/account-explorer/

Note that Tracking ID and Property ID mean the same thing.

Original comment by pfrise...@google.com on 7 Mar 2016 at 10:27

GoogleCodeExporter commented 8 years ago
Issue 846 has been merged into this issue.

Original comment by pfrise...@google.com on 7 Mar 2016 at 10:53