Goals report CH

This commit is contained in:
Brian Cao 2024-05-05 22:15:47 -07:00
parent 1dda711401
commit 60e7257656
20 changed files with 758 additions and 4 deletions

View file

@ -119,7 +119,10 @@ async function parseFilters(websiteId: string, filters: QueryFilters = {}, optio
};
}
async function rawQuery(query: string, params: Record<string, unknown> = {}): Promise<unknown> {
async function rawQuery<T = unknown>(
query: string,
params: Record<string, unknown> = {},
): Promise<T> {
if (process.env.LOG_QUERY) {
log('QUERY:\n', query);
log('PARAMETERS:\n', params);

View file

@ -111,6 +111,7 @@ export const DATA_TYPES = {
export const REPORT_TYPES = {
funnel: 'funnel',
goals: 'goals',
insights: 'insights',
retention: 'retention',
utm: 'utm',