Skip to content

Instantly share code, notes, and snippets.

@wetzler
Last active August 29, 2015 13:56
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 wetzler/8986843 to your computer and use it in GitHub Desktop.
Save wetzler/8986843 to your computer and use it in GitHub Desktop.
How to get the total amount refunded in Stripe using Keen IO
Keen.onChartsReady(function() {
var metric = new Keen.Metric("Stripe_Events", {
analysisType: "sum",
targetProperty: "data.object.amount_refunded",
filters: [{"property_name":"type","operator":"eq","property_value":"charge.refunded"}]
});
metric.draw(document.getElementById("someDiv"));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment