GithubHelp home page GithubHelp logo

isabella232 / analytics-proxy Goto Github PK

View Code? Open in Web Editor NEW

This project forked from 18f/analytics-proxy

0.0 0.0 0.0 39 KB

Experimental proxy to make GA data public.

License: Other

Python 75.33% JavaScript 17.02% HTML 7.65%

analytics-proxy's Introduction

Analytics Proxy

Analytics Proxy allows you to publicly share Google Analytics reporting data. It was partially inspired by Google Analytics superProxy; however, unlike Google Analytics superProxy it doesn’t need to be deployed on Google App Engine

Setup

Requirements

Google Analytics Service Account

  1. Create Google API service account and take not of the client email.
  2. Download the P12 private key file and place it in the analytics-proxy folder.
  3. Make sure to add the client email to the Google Analytics account.

Install Redis

# Mac OS
brew install redis
# Ubuntu
sudo apt-get install redis-server

Start Redis

redis-server

Env Variables

export APP_SETTINGS="app_config.DevelopmentConfig"
export CLIENT_EMAIL=<<GA CLIENT_EMAIL>>
export GA_P12_KEY=<<Location of P12 Key>>

Modify reports.py to meet reporting needs.

    {
        'report_name': 'top-sources',
        'refresh_rate': 60,
        'query': {
            'ids': 'ga:<<your ga:ID>>',
            'dimensions': 'ga:source',
            'metrics': 'ga:sessions',
            'start_date': '2013-11-20',
            'end_date': '2015-11-30'
        }
    },

analytics-proxy's People

Contributors

geramirez avatar konklone avatar ramirezg avatar stvnrlly 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.