Skip to content

Commit

Permalink
update (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiyuanliang-ms authored Oct 24, 2024
1 parent ef1f2f1 commit 6d573be
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,6 @@ export function createTelemetryPublisher(client: ApplicationInsights): (event: E
export function trackEvent(client: ApplicationInsights, targetingId: string, event: IEventTelemetry, customProperties?: {[key: string]: any}): void {
const properties = customProperties ? { ...customProperties } : {};
// Ensure targetingId is string so that it will be placed in customDimensions
properties["TargetingId"] = targetingId?.toString();
properties["TargetingId"] = targetingId ? targetingId.toString() : "";
client.trackEvent(event, properties);
}

0 comments on commit 6d573be

Please sign in to comment.