Today I was implementing the Gapi Google analytics php interface and I struggled in a issue in the account settings.
This is the url of the class:
In order to get you data from Google you have to fill your account data (see below):
define('ga_profile_id','your profile id');
Right, everything OK till the ga_profile_id; this id seems to me almost impossible to find in your dashboard. I tried the id's of the tracking code that you have to insert in the tracked page, but without success.
After almost an hour of research I was able to find my code. The code is the number that you find in the URL of your Google analytics page after the p character
Here an example:
Use that code as ga_profile_id and you will be able to authenticate and get your data.