
Logging into Google Analytics to check your daily site stats is all fine and dandy, but sometimes you are short on time and it becomes an unnecessary step, especially if you are already logging into some type of CMS to edit your site’s content.
For those wanting to incorporate Google Analytics data into their CMS, there are a couple of readily available classes out there that make it as easy as adding a few lines of PHP code to your site, then looping through the results and displaying them using a graphing library.
As for the PHP classes, you have a very easy to use analytics class here, and then there is the very capable ga:pi php class that will produce similar results.
Once your PHP has retrieve the data from your Analytics account, you will need some sort of javascript or image processing library to graph the data. Two interesting options are the gRaphaël javascript library graphing library, and the Google Charts API.
With that, you should be able to easily incorporate any Analytics data you want into your own site, including eCommerce transaction data and various combinations of dimensions and metrics.
Logging into Google Analytics to check your daily site stats is all fine and dandy, but sometimes you are short on time and it becomes an unnecessary step, especially if you are already logging into some type of CMS to edit your site’s content.
For those wanting to incorporate Google Analytics data into their CMS, there are a couple of readily available classes out there that make it as easy as adding a few lines of PHP code to your site, then looping through the results and displaying them using a graphing library.
As for the PHP classes, you have a very easy to use analytics class here, and then there is the very capable ga:pi php class that will produce similar results.
Once your PHP has retrieve the data from your Analytics account, you will need some sort of javascript or image processing library to graph the data. Two interesting options are the gRaphaël javascript library graphing library, and the Google Charts API.
With that, you should be able to easily incorporate any Analytics data you want into your own site, including eCommerce transaction data and various combinations of dimensions and metrics.