Skip to content

Wikia/analytics-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

analytics-client

Client for different analytics services used for reporting needs

Installation

gem install analytics-client

Usage

analytics-client.rb -c PATH_TO_CONFIG

You can also specify jobs to run

analytics-client.rb -c PATH_TO_CONFIG -j JOB_NAME1,JOB_NAME2

to turn on more verbose output run it with -v option

analytics-client.rb -c PATH_TO_CONFIG -v

Configuration

configuration 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

About

Client for different analytics services used for reporting needs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages