Giter VIP home page Giter VIP logo

waunit's Introduction

Web Analytics Unit (WAUnit)

WAUnit is a testing framework developed by Joao Correia <https://twitter.com/joaocorreia>. The current version is targeted for use with Google Analytics (other platforms coming soon).

When you setup custom tracking for a website you have to validate if the hits are correct, HitInspect automates the verification of tracking specifications.

Watch the Youtube video 'WAUnit Overview'.

In a nutshell this is how it works:

https://cloud.githubusercontent.com/assets/1695738/13732067/df23460a-e936-11e5-8dfe-64c628f59628.png

  1. A python unittest using Selenium Webdriver is executed
  2. A local proxy captures the Google Analytics hits
  3. The unittest compares the specs with the proxy hit log and returns OK/FAIL for each test and detailed information on what doesn’t match.

Requirements

  • Python 2.7
  • Selenium
  • mitmproxy

Installation

Install WAUnit using pip. Notice a core requirement is mitmproxy. Be sure to install SSL certificates for mitmproxy so the proxy can capture SSL traffic.

python pip install WAUnit

Quickstart

If you are not familiar with Selenium read the getting started with Selenium Python Bindings. Watch the Youtube video 'Getting Started with WAUnit'

  1. Create a folder for the project
  2. Create a configuration file: wunit.cfg
  3. Start the proxy: waunitproxy –config wunit.cfg
  4. A file named hitdata.db will be created in your home directory
  5. Download [sample.py](#) to your project directory
  6. Execute the sample with: python sample.py

wunit.cfg

[WAUnit]
Only googleanalyticsuniversal is available right now
parser = googleanalyticsuniversal

[Proxy] host = 127.0.0.1
port = 8080
hitsdb = hitsdata

waunit's People

Contributors

joaolcorreia avatar joechristopher avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

waunit's Issues

New repository not obvious

Came here from PyPi.
The repository just shows as empty with no redirect, no description, and no content.

Only when browsing to your list of repositories did I see a label stating that the repository has been moved See https://github.com/blast-analytics-marketing/WAUnit.

Would be good if you could update the PyPi homepage value and put a README or something appropriate with a notification of the move.

Is this project still maintained / valid?

Hi,

Please clarify if this project is still value & maintained for web analytics testing ( for google analytics ).

I've observed that the last update done is quite long back.

Thanks,
Vikram

Migration to Python 3?

Hi @joaolcorreia @joechristopher ,

Just two quick questions:

  • do you intend to migrate du Python3? We think WAUnit is great but we struggle to get it work with our platforms.
  • do you provide any consulting around this solution?

python pip install WAUnit throws error

Hi,

I've Ubuntu 16.04, running command python pip install WAUnit throws error as below

python: can't open file 'pip': [Errno 2] No such file or directory

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.