shermozle / beaconWatch

Use node.js to load web pages and parse out the analytics beacons of interest
GNU General Public License v3.0
6 stars 2 forks source link

Refactor to use regexes #1

Open shermozle opened 10 years ago

shermozle commented 10 years ago

Thinking some structure like this to define what's collected:

{
    host: 'www.google-analytics.com',
    path: /\/collect\//,
    name: 'Google Universal Analytics'
    variant: 'Traditional data collection domain'
}

Then maybe even put the beacon-specific tests within that somehow?

Or maybe I want a tree, with tests at every level: Google Analytics > Universal Analtyics > Doubleclick data collection

Then you want some way to pass back beacon info so that application-specific tests can happen.