/
README
7 lines (5 loc) · 877 Bytes
/
README
1
2
3
4
5
6
7
This is a set of scripts and stylesheets written to perform an automated downloading raw statistic numbers from the Google Analytics and then converting them to the amCharts format. Google provides greate API for data export, so we can log in and donload all the data with two simple bash-scripts. The work with converting one XML to another is done by the xsltproc with no extensions needed. Those tools (bash and xsltproc) are installed on almost all unix systems out there, so you will have to do nothing to get it up and running.
You can use it with cron to disable yourself from updating stats manually every time. We use this crontab file:
0 0 * * 3 cd /www/inshaker/analytic && ./login.sh >/dev/null
0 6 * * * cd /www/inshaker/analytic && ./update.sh >/dev/null
As you can see from the crontab we are using it on the Inhsaker (http://www.inshaker.ru/geeks/stats.html).