Coder Social home page Coder Social logo

ga-datavalidator-poc's Introduction

ga-datavalidator-poc

The Project is an attempt to automate the GA Analytics Audit at Marketlytics using Google Core Reporting and Management APIs. This is only a proof of concpept for a larger, more detailed web-based app.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

Install the python client for Google API using pip

$ pip install --upgrade google-api-python-client

Create an App on Google Cloud using the following link (assuming you already have a Google account) https://support.google.com/cloud/answer/6158853

Installing

  1. Enable the 'Google Analytics API' and 'Google Analytics Reporting API' form the Google API console

  2. Create 'OAuth client ID' Credentials from the Credentials section of the Google API console, in the Application type choose 'Other'

  3. Download the clinet_secret JSON file of the created credential

  4. Clone the code to your local repository

  5. Give the client secrets path in the right variable

    CLIENT_SECRETS_PATH = 'client_secrets.json' #Path to client_secrets.json file
    
  6. From your Google Analytics Account, find the IDs required for the application to function

    VIEW_ID = '88888888' #8 digit View ID
    ACCOUNT_ID = '88888888' #8 digit Account ID
    WEB_PROPERTY_ID = 'UA-88888888-9' #9 digit Web Property ID
    

Running the tests

Test the program by running the following code from the terminal

python ga_automation.py

ga-datavalidator-poc's People

Contributors

hisham-marketlytics avatar

Watchers

James Cloos avatar Mashhood Rastgar avatar Hussain avatar

Forkers

hishamsajid

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.