Client for different analytics services used for reporting needs
gem install analytics-clientanalytics-client.rb -c PATH_TO_CONFIGYou can also specify jobs to run
analytics-client.rb -c PATH_TO_CONFIG -j JOB_NAME1,JOB_NAME2to turn on more verbose output run it with -v option
analytics-client.rb -c PATH_TO_CONFIG -vconfiguration is written in YAML
Example config:
Flurry: #Job name
mobile_flurry_events: #Task name - each job can have more tasks in it
type: Flurry # Type of fetcher to be used
config: # config passed to fetcher
key: API_KEY
app_keys:
APP_NAME: APP_KEY
format: csv # csv is default
output: mobile_apps.csv # file you want results to be saved in
GTMetrix_job:
page_metrix:
type: GTMetrix
config:
user: USER
password: PASSWORD
urls: # Urls to run page analytics for (GTMetrix supports upto 20 request per day)
- http://example.com
- http://example.com/page/admin.php
output: ga_mobile_pvGTM
GA_Mobile:
page_views:
type: GoogleAnalytics # It uses Legato See https://github.com/tpitale/legato
config:
client_id: CLIENT_ID
client_secret: CLIENT_SECRET
token: TOKEN #See http://jonathanotto.com/blog/google_oauth2_api_quick_tutorial.html
refresh_token: REFRESH_TOKEN
conf: Path/to/Legato/models.rb # See https://github.com/tpitale/legato/wiki/Model-Data
model: ModelName
filters:
- it_can_be_omitted_and_will_run_all_filters_in_model
- page_views
output: ga_mobile_events