implement pageviews, events, and channels queries
This commit is contained in:
1 parent
c1cad16cb9
commit
0a0c1f27c6
24 files changed
+521
-86
No files matched your search
@@ -90,7 +90,11 @@ function mapFilter(column: string, operator: string, name: string, type: string
|
||||
function getFilterQuery(filters: Record<string, any>, options: QueryOptions = {}) {
|
||||
const query = filtersToArray(filters, options).reduce((arr, { name, column, operator }) => {
|
||||
if (column) {
|
||||
arr.push(`and ${mapFilter(column, operator, name)}`);
|
||||
if (name === 'eventType') {
|
||||
arr.push(`and ${mapFilter(column, operator, name, 'UInt32')}`);
|
||||
} else {
|
||||
arr.push(`and ${mapFilter(column, operator, name)}`);
|
||||
}
|
||||
|
||||
if (name === 'referrer') {
|
||||
arr.push(`and referrer_domain != hostname`);
|
||||
|
||||
Reference in new issue
Block a user