Skip to content

Browserscope reporting #52

Open
Open
@paulirish

Description

@paulirish

Got some detail from Lindsey on using grouping to send all the results in a single beacon and display it nicely.. this should work well for us

Hey Paul,

The basic idea I was thinking of was that your JS page which does the browserscope beacon could do:

['test_a=foo', 'test_b=foob', 'test_c=fooc', 'group_1': foog]

Now in your results table you'd add &f=group_1,group_2,group_3 to the URLs and the results tables would then only show the medians of the group values.
That way you can store all the granular data but only display the median of the grouped results (which is good enough for most things).

Let me know if I can help with the has.js integration in any way!
-l

Just for kicks.. here's the code for dynamic test creation. though i'm not sure we need it

/*
  dynamic browserscope test creation.

  get an API key from creating an account on browserscope
  http://groups.google.com/group/browserscope/browse_thread/thread/14cb53b2a589420a#

  example code from mathias below.  

*/
<?php>

function addBrowserscopeTest($title = '', $description = '', $url = '') {
 $bURL = 'http://www.browserscope.org/user/tests/create?api_key=' . BROWSERSCOPE_API_KEY . '&name=' . urlencode($title) . '&description=' . urlencode(substr($description, 0, 60)) . '&url=' . urlencode($url);
 if ($json = file_get_contents($bURL)) {
  // $http_response_header is a magic variable containing the resulting headers of file_get_contents()
  // var_dump($http_response_header);
  $json = json_decode($json);
  return $json->test_key;
 } else {
  return '';
 }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions