The following docs make it seem like my code should work, however I'm getting an undefined error, I'm sure it's something simple but I can't quite get my head around it.
https://github.com/keen/keen-js/blob/master/docs/visualization.md#automatic-updates
var clicks_keen = new Keen.Query("count", {
eventCollection: "clicks",
groupBy: "campaign.id",
interval: window.interval,
timeframe: window.timeframe
});
clicks_keen.refresh();