diff --git a/src/app/core/services/dom-event-tracker.service.ts b/src/app/core/services/dom-event-tracker.service.ts index 93ccbf13..2d17a455 100644 --- a/src/app/core/services/dom-event-tracker.service.ts +++ b/src/app/core/services/dom-event-tracker.service.ts @@ -10,20 +10,20 @@ export class DomEventTrackerService { constructor(private readonly _router: Router, private readonly _telemetryService: TelemetryService) { } onClick(event): void { - const { pageName, eventName } = event; + const { pagename, eventName } = event; this._telemetryService.saveTelemetry({ - pageName: pageName ? pageName : this._router.url?.slice(1), - pageEvent: "click", - pageEventName: eventName ? eventName : "filter" + pagename: pagename ? pagename : this._router.url?.slice(1), + pageevent: "click", + pageeventname: eventName ? eventName : "filter" }).subscribe(res => console.log('telemetry saved!!!'));; } onChange(event): void { - const { pageName, eventName } = event; + const { pagename, eventName } = event; this._telemetryService.saveTelemetry({ - pageName: pageName ? pageName : this._router.url?.slice(1), - pageEvent: "change", - pageEventName: eventName ? eventName : "filter" + pagename: pagename ? pagename : this._router.url?.slice(1), + pageevent: "change", + pageeventname: eventName ? eventName : "filter" }).subscribe(res => console.log('telemetry saved!!!'));; } } diff --git a/src/app/views/telemetry/config/telemetry_config.ts b/src/app/views/telemetry/config/telemetry_config.ts index d610e397..254e86b5 100644 --- a/src/app/views/telemetry/config/telemetry_config.ts +++ b/src/app/views/telemetry/config/telemetry_config.ts @@ -54,7 +54,7 @@ export const config = { "hierarchyLevel": "0", "actions": { "queries": { - "barChart": "select count(distinct userid) as user_count, browsername from datasets.telemetry_browserscount_zgr6vhegehrjbhb__cx0s where date between startDate and endDate group by browsername", + "barChart": "select count(distinct userid) as user_count, browsername from datasets.telemetry_browserscount_zgr6dhegehrjbhb__cx0s where date between startDate and endDate group by browsername", }, "level": "district" } @@ -64,7 +64,7 @@ export const config = { "hierarchyLevel": "1", "actions": { "queries": { - "barChart": "select count(distinct userid) as user_count, browsername from datasets.telemetry_browserscount_zgr6vhegehrjbhb__cx0s where date between startDate and endDate group by browsername", + "barChart": "select count(distinct userid) as user_count, browsername from datasets.telemetry_browserscount_zgr6dhegehrjbhb__cx0s where date between startDate and endDate group by browsername", }, "level": "district" } @@ -95,7 +95,7 @@ export const config = { "hierarchyLevel": "0", "actions": { "queries": { - "barChart": "select count(distinct userid) as user_count, devicename from datasets.telemetry_devicescount_ynndeshvzvtuxwh6dzyw where date between startDate and endDate group by devicename", + "barChart": "select count(distinct userid) as user_count, devicename from datasets.telemetry_devicescount_ynn9eshvzvtuxwh6dzyw where date between startDate and endDate group by devicename", }, "level": "district" } @@ -105,7 +105,7 @@ export const config = { "hierarchyLevel": "1", "actions": { "queries": { - "barChart": "select count(distinct userid) as user_count, devicename from datasets.telemetry_devicescount_ynndeshvzvtuxwh6dzyw where date between startDate and endDate group by devicename", + "barChart": "select count(distinct userid) as user_count, devicename from datasets.telemetry_devicescount_ynn9eshvzvtuxwh6dzyw where date between startDate and endDate group by devicename", }, "level": "district" }