Custom Google Analytics Dashboard for your PHP Application using GA-API

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.

48 Responses to “Custom Google Analytics Dashboard for your PHP Application using GA-API”

  1. Ochiroo Says:

    Great work. Really interested in this. I have been trying to integrate google analytic with my cms.
    Can you send me the source code please.


Share your thoughts & feedback

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: