Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Collects visits data for different time intervals from google analytics

Fetching latest commit…


Cannot retrieve the latest commit at this time

Octocat-spinner-32 bin
Octocat-spinner-32 config
Octocat-spinner-32 lib
Octocat-spinner-32 log
Octocat-spinner-32 spec
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .rspec
Octocat-spinner-32 Gemfile
Octocat-spinner-32 Gemfile.lock
Octocat-spinner-32 Rakefile


Collect the statics specified by the configuration from google analytics


The first thing that must be done when using this collector is to authorise the application with google. First you will need to generate an authorisation code. This code then needs to be passed to the bin/collector command line script using --authorisation_code=CODE

Message Format

    "collector":"Google Analytics"


This collector is run from the command line with the bin/collector script. This command requires an action which can be either help, print or broadcast. It also requires a --config option which defines which configuration class is used. For example the following command will print messages to the terminal using the WeeklyUniqueVisitors configuration.

$ bundle exec bin/collector --config=WeeklyUniqueVisitors print

Other Options

--days_ago: This option allows you to collect all data since a given time ago. The frequency will depend on the configuration you use.

--authorisation_code: Pass in the code to authorise this project with Google.

Something went wrong with that request. Please try again.