Downloads GA data for a list of sites in CSV format.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
ZendFramework-1.12.3/library/Zend
data
README.md
ga2csv.php

README.md

ga2csv

PHP script to turn Google Analytics data for a list of sites into CSVs

  • One CSV per site.
  • Each CSV row corresponds to one day. Columns: 'date', 'visits', 'new_visits', 'visitors'.

Configuration

Edit the configuration section of ga2csv.php:

Usage

php ga2scv.php

The script will create a CSV file for each site in the data directory, and also a file called totals.csv with the total visits for each site.