Skip to content

Commit 567d3f2

Browse files
committed
Feature usage updates
1 parent b5ae289 commit 567d3f2

File tree

5 files changed

+215
-192
lines changed

5 files changed

+215
-192
lines changed

src/common/appInsights/index.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@ import {Environment,EnvironmentType} from "@microsoft/sp-core-library";
44

55
AppInsights.downloadAndSetup({ instrumentationKey: "9f59b81e-d2ed-411e-a961-8bcf3f7f04d0" });
66

7-
export function track(componentName: string): void {
7+
export function track(componentName: string, properties: any = {}): void {
88
AppInsights.trackEvent(componentName, {
99
version,
1010
debug: DEBUG ? "true" : "false",
11-
environment: EnvironmentType[Environment.type]
11+
environment: EnvironmentType[Environment.type],
12+
...properties
1213
});
1314
}

0 commit comments

Comments
 (0)