This project is for a PHP script that can download data from a Google Analytics account.
Visitors to the website should be able to authorize the script to connect to their Google Analytics account and then the script will download data from their accounts each day (the script will be run via CRON). ? Visitors should NOT have to authorize the script or enter their password each day - they should be able to authorize the script once, have their creditentials stored and the script should be able to download their analytics data once a day from their on out.
No database code needs to be written for this project - I will add that myself later. ? The authorization page should just output the data that needs to be saved and I will manually enter it in to the download script for testing.
The download script should be a function that takes as parameters the necessary information for accessing a Analytics account, download the data and returns an array object with the downloaded data.
The data to be fetched is:
Daily value for last 30 days
-- Visits
-- Pageviews
-- Avg. Time on Site
-- ECommerce Revenue
-- ECommerce Conversion Rate
For Yesterday
-- Traffic sources percentages for Direct, Referring, Search, Other
-- Top 25 referrers
-- Top 25 keywords
-- Top 25 content pages
-- Percent returning visitors
Please let me know if you have any questions.