Within our CMS we think it would be beneficial to display some basic charts to the client from within their Google Analytics account. For example, on the main dashboard page, it may display total unique visitors from last 30 days.
We believe this is possible (via Analytics API, Charts API, Data Export API) but know that you may need to be logged into your Google account to be able to download the data. Obviously, we want this to be automatic. An example service is provided by [login to view URL]
All our clients analytics are held within our own Google Account so we would only need to authenticate with one username/password, and we would supply the site ID to the function.
Ideally, we would like a PHP function which would give us some parameters that we can control. For example:
• Few options for type of chart (line/bar/pie)
• Dimensions of chart
• Data to be displayed (unique visitors / page views / traffic sources)
• Date range (last 30 days, last 3 month, last 1 year)
We would also like a function that could dispaly a chart based on a specific URL. i.e. [login to view URL] had XX number of visitors.