Few days back, i was building an executive dashboard using google analytics api. So i wrote a library, by which you can have required google analytics graph/charts inside your Corporate PHP application without going to google analytics page (avoiding 2 admin interfaces). You can embed any desired graph/charts (by providing desired URL) in your corporate website’s admin area.
Using few existing open-source tools, i tried to give same user experience as we have in google analytics dashboard panel. I have used Open Flash Charts for analytics like charts generation and data is fetched from google analytics (thanks to wordpress google analytics plugin).
Actual google analytics charts (image below) are almost similar to what is available in this lib.
Implementation is shown in working sample code which is available to download. You can enhance it as per your requirement.
In configuration file (config.php), you have to provide your Google Analytics User, Google Analytics Password and Profile ID. These information are required by google analytics api for authentication and analytics data fetching. You can get your profile ID from URL (as in image) when you log into your google analytics account.
Click here to download sample code. To download sample code, contact me by replying this post.
Update: Code is grounded due to stability / other issue. Apologies for all followers of this thread. Use this link as an alternate.