Skip to content

Commit 2ee1c1d

Browse files
committed
Updated optout for telemetry
1 parent 29151c0 commit 2ee1c1d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/documentation/docs/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ All controls gather telemetry to verify the usage. Only the name of the control
3939
Since version `1.17.0` it is possible to opt-out of the telemetry by adding the following code to your web part:
4040

4141
```typescript
42+
import PnPTelemetry from "@pnp/telemetry-js";
43+
...
4244
const telemetry = PnPTelemetry.getInstance();
4345
telemetry.optOut();
4446
```

0 commit comments

Comments
 (0)