Browserscope wants to help you store and aggregate your browser test data. Storing your data in our system gives you the benefit of not having to write a complex, scaling backend with a user agent parser built in. You can download all of your data for offline processing, and we provide a stats table widget that you can embed on your page which shows the median results for your tests.
This is definitely a release early/often feature, and we want to be explicit that things may change or break in the API while we're in alpha mode.
<script>
// To save data in Browserscope do something like the following.
// The syntax is 'test_key': 'value' where test_key is some unique
// identifier for a piece of data you want to store (no = or , allowed)
// and value is a numeric value from 0 through 10000.
var _bTestResults = {
'test_one': '1',
'test_two': '0'
};
// Beacon the results to Browserscope.
(function() {
var _bTestKey = 'CHANGE-THIS-TO-YOUR-TEST-KEY';
var _bScript = document.createElement('script');
_bScript.src = 'http://www.browserscope.org/user/beacon/' + _bTestKey;
_bScript.setAttribute('async', 'true');
var scripts = document.getElementsByTagName('script');
var lastScript = scripts[scripts.length - 1];
lastScript.parentNode.insertBefore(_bScript, lastScript);
})();
</script>
_bScript.src += '?callback=YOUR-FUNCTION-NAME';
_bScript.src += '?sandboxid=YOUR-SANDBOX-ID';
Just remember not to publish this widely and/or change it after
you're done testing so that no one can corrupt your dataset.
<iframe
src="http://www.browserscope.org/user/tests/table/YOUR-TEST-ID?v=3&layout=simple"></iframe>
Parameters:
v=0: Shows the "Top Browsers" list. (DEFAULT)
v=1: Shows the browser families.
v=2: Shows the minor browser versions.
v=3: Shows all browser versions.
o=html: The browserscope HTML table (DEFAULT, good for iframe src)
o=js: Good as a script src value, renders the table on your page.
o=gviz_data: Preformatted gviz output, suitable for gviz widgets.
o=json: A JSON encoded response with all the data.
callback=yourFnnName: When o=json, wraps json output in "yourFnName()"
layout=full: Includes links and headers we use in Browserscope (o=html, DEFAULT).
layout=simple: Hides a variety of things, good for embedding (o=html).
f=test_key_1,test_key_2: Limit results to these test_keys.
/user/tests/create?api_key=YOUR-API-KEY&name=Some test name&description=A longer description&url=http://yourtest.com/page.html
{"test_key": "thetestkeyforthenewtest"}
Please send any feedback and ideas about these features to the Google Group