A project aimed at identifying ad networks with the fastest and slowest performing ad's on the internet through crowd-sourced, easy to understand, and openly accessible benchmarking data. Inspired by Lightbeam, the Site-Sonar browser extension locates and benchmarks ad content silently while you browse. It is then sent to Site-Sonar's servers, where the data is aggregated and displayed on our public dashboard. This repository serves as a home for the Site-Sonar Dashboard and RESTful API.
Clone the repository by running:
git clone https://github.com/FrancescoSTL/Site-Sonar-dashboard.git
Download and install Node.js
Once you've cloned the repo and installed Node.js, you can start sherlock by running:
npm install
node ./bin/www.js
- Navigate to
https://localhost:3000/
- Start running the Site-Sonar dashboard as instructed above
- Run
curl -d 'Data to send' http://localhost:3000/log/
You should recieve back the message: Data successfully recieved by Site-Sonar. Thanks :-).
Congrats, you just successfully set up the local version of Site-Sonar's Dashboard!
Want to start writing some dashboards? Below you'll find an example (shortened) JSON object we recieved after one user browsed the internet:
{
"assets": [{
assetCompleteTime": 315,
"originUrl": "www.mlab.com",
"hostUrl": "www.mlab.com",
"adNetworkUrl": "ssl.google-analytics.com",
"assetType": "script",
"fileSize": "16022",
"timeStamp": 1470369858230,
"method": "GET",
"statusCode": 200,
"adNetwork": "Google"
}, {
"assetCompleteTime": 69,
"originUrl": "github.com",
"hostUrl": "github.com",
"adNetworkUrl": "www.google-analytics.com",
"assetType": "xmlhttprequest",
"fileSize": "35",
"timeStamp": 1470369918414,
"method": "POST",
"statusCode": 200,
"adNetwork": "Google"
}, {
"assetCompleteTime": 125,
"originUrl": "www.youtube.com",
"hostUrl": "www.youtube.com",
"adNetworkUrl": "googleads.g.doubleclick.net",
"assetType": "xmlhttprequest",
"fileSize": "133",
"timeStamp": 1470421355148,
"method": "GET",
"statusCode": 200,
"adNetwork": "Google"
}]
}
-
assetCompleteTime
Integer
Amount of time (in milliseconds) that the network took to respond to the HTTP request for the asset. This is calculated using a time diff between onSendHeaders and onHeadersReceived. -
originUrl
String
The URL from which the HTTP request originated. In many cases, this will be the hostUrl, however, sometimes ads will trigger their own HTTP requests. For example, checkout the following example from some real world data we pulled in Site-Sonar Issue #17 -
hostUrl
String
The top level host URL from which the HTTP request originated. For example, if you have 3 tabs open and one request originates from the first tab (lets say,youtube.com
), the top level host would always be said tab's url (youtube.com
). -
adNetworkUrl
String
The host URL of the ad asset. -
assetType
String
Can be anything recieved by webRequest.ResourceType. -
fileSize
Integer
File size in octets of bits. -
timeStamp
Integer
Time when the asset was requested (in milliseconds) since the epoch -
method
String
Either "GET" or "POST". -
statusCode
Integer
Standard HTTP status code returned by the server. Ex:200
,404
,301
, etc -
adNetwork
String
The Ad Network for which the asset belongs.
Site-Sonar is a browser extension currently supported in Firefox, Chrome, and Opera, which silently collects data about how ad's are performing in your browser. After collecting that data, it will be sent to Site-Sonar's server to aggregate (unless you opt out) and keep ad networks accountable through publicly accessible performance information on our dashboard (hosted in this repo).
- Upon installing Site-Sonar, data will be collected locally and stored in your browser. Unless you opt out, every 2 minutes, that data will be sent to Site-Sonar servers for aggregation and display on our public dashboard.
- By default, data collected by Site-Sonar is sent to us.
- You can chose to opt out of sending any data to us.
- If you do contribute Site-Sonar data to us, your browser will send us your data in a manner which we believe minimizes your risk of being re-identified (you can see a list of the kind of data involved here). We will post your data along with data from others in an aggregated and open database. Opening this data can help users and researchers make more informed decisions based on the collective information.
- Uninstalling Site-Sonar prevents collection of any further Site-Sonar data and will delete the data stored locally in your browser.
Sort of. Once installed, Site-Sonar collects the host url of any website you browse that hosts ad content. Read more in our Privacy Policy or Summary of Data Collection.
Check out our installation instructions and then head to our Github Issues page for either the Site-Sonar web extension (this repo), or the Site-Sonar Dashboard.
A group of humans interested in making the internet a better place through a pragmatic approach to problems on the web.
Specifically:
Visit our Contact Page.