rsweetland/Lean-Charts — Issue #8: Helper Function to Count Events Limited By Contents in the "Data" field
Author: rsweetland
Created: 2011-10-25 20:02:31+00:00
State: open

Function to count events where data meets certain conditions.

Example:
countEventsWhere(eventName, data-conditions-present, $cohort);
Example:
$numInvites = countEventsWhere('Invite sent', 'joe@smith.com', $cohort); (Maybe we make this more abstract by putting into an array, etc so we can search for the number of events where "numValue > 10" or something like that). Cohort would apply here as well.