Skip to content

Use node.js to load web pages and parse out the analytics beacons of interest

License

Notifications You must be signed in to change notification settings

shermozle/beaconWatch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

beaconWatch

Use node.js to load web pages and parse out the analytics beacons of interest.

What is does is open a browser via Selenium, spin up a proxy server and tell Selenium to use it, then browse to your URL. The proxy parses out the URLs of beacons according to some basic rules.

Block diagram of beaconWatch

Currently just a proof of concept. Aim is to have something that will drive Saucelabs browsers to check in all browsers and to be build into some kind of unit test framework. Also doesn't handle HTTPS so the Facebook beacons don't work and it won't work with secure sites.

It's very rough, but I want to get the concept out there and hopefully better developers than I can help me make it suck less!

Dependencies

npm

Requires these npm modules:

  • http-proxy
  • url
  • colors
  • selenium-webdriver
  • optimist

Selenium

You also need to have a locally running version of the Selenium server like: Version 2.41.0

Run it with: java -jar selenium-server-standalone-2.41.0.jar

About

Use node.js to load web pages and parse out the analytics beacons of interest

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published