I am writing a JQL query to analyze MixPanel events. How can I group events by host name?
I tried this:
function(event) {return new URL(event.properties['$current_url']).hostname}
But I get an error that says "Precondition Failed."
I know this line of code is the problem, because the query works when I use a simpler statement (e.g. group by $current_url
instead of host name).