Giter Club home page Giter Club logo

datainsight-ga-collector's Introduction

datainsight-ga-collector

Collect the statics specified by the configuration from google analytics

Setup

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 collector command line script using --authorisation_code=CODE

Message Format

{
  "envelope":{
    "collected_at":"2012-08-13T18:09:20+01:00",
    "collector":"Google Analytics"
  },
  "payload":{
    "start_at":"2012-07-29T00:00:00+00:00",
    "end_at":"2012-08-05T00:00:00+00:00",
    "value":32199,
    "site":"govuk"
  }
}

Usage

This collector is run from the command line with the 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 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.

datainsight-ga-collector's People

Contributors

robyoung avatar gtrogers avatar sembirayael avatar maxfliri avatar jabley avatar ssatish avatar

Stargazers

JT5D avatar Phil Wilson avatar

Watchers

James Stewart avatar Mark Norman Francis avatar Dean Wilson avatar Ben Marvell avatar  avatar Pramod Bansal avatar Jim Barritt avatar Paul Fawkesley avatar minglis avatar  avatar  avatar  avatar David Illsley avatar Jacob Ashdown avatar James Cloos avatar  avatar Davina Sirisena avatar  avatar Caoimhin Graham avatar  avatar Phil B avatar Nayeema Chowdhury avatar  avatar Yolina Sotirova avatar Michael Thomas avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.