You are here

Apparently someone working on Google Analytics' API has a sense of humour

AttachmentSize
ken-vs-ryu.png36.53 KB

Ok, maybe sense of humour is a stretch but they are at least huge fans of Street Fighter.

I was working on integrating the Google Analytics API into a website and came across this little snippet at the very end of their common query samples. I attached a screenshot.

Ken vs Ryu

This query returns data on battles fought between Ken and Ryu, sorted by number of fireballs thrown in descending order.

dimensions=ga:fighterName1,ga:fighterName2
metrics=ga:roundsWon,ga:punches,ga:kicks
filter=ga:fighterName1==Ken,ga:fighterName2==Ken;ga:fighterName1==Ryu,ga:fighterName2==Ryu
sort=-ga:fireballs

Just kidding, this one doesn't actually work, but it would be so cool if it
did...

Add new comment

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image.