I am doing the example (Java) at this link
https://developers.google.com/analytics/resources/articles/gdataAnalyticsCsv
Please tell me how I can get the TABLE_ID in Google Analytics. The code in the link below uses the table id (line 37):
https://code.google.com/p/ga-api-java-samples/source/browse/trunk/src/v2/csvprinter/AnalyticsCsvDemo.java
The table id needs to be used for other code. So, that "other code" is not going to work unless I can get the table id. Apparently, table id is of the form
ga:[your_profile_id]
But this always results in the application getting terminated with the error:
Invalid value for ids parameter: [my profile id here]
Please help me to solve this problem. Thanks!
In your analytics dashboard at the top left click on ADMIN
, then go to View Settings
, and you can find there the View ID
. At the end just prepend ga:
to that number.
So, at the end, your table id would be
ga:<view-id>
In Google Analytics go to Admin -> Profiles -> Profile Settings.
The table id is the profile id. It is used by the GA api in the form of ga:1234455
So, if you have the right profile id in the table id, then something else is wrong.
UPDATED
In Google Analytics go to Admin -> View -> View Settings.
The view id is the profile id the profile id is the table id. Thank Google for being clear on this.
In the View
panel, select View Settings
, then under Basic Settings
there is the View ID
just append ga:
before that id.
Correct place below:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With