Skip to content

Instantly share code, notes, and snippets.

@killercup
Last active August 29, 2015 14:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save killercup/11045198 to your computer and use it in GitHub Desktop.
Save killercup/11045198 to your computer and use it in GitHub Desktop.
Google Play Store Purchase Stats

Go to https://play.google.com/store/account?purchaseFilter=apps, open the Inspector (CMD+ALT+I, using Chrome) and enter the following:

$('td.purchase-price').map(function(){ return +$(this).text().trim().replace('€', '').trim().replace(',', '.') }).toArray().reduce(function (memo, p) {return memo + p;}, 0)

To filter for specific in-app purchases, prepend a purchase name selector:

$('td.purchase-name:contains("Comics") ~ td.purchase-price').map(function(){ return +$(this).text().trim().replace('€', '').trim().replace(',', '.') }).toArray().reduce(function (memo, p) {return memo + p;}, 0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment