Forum Discussion

Adnan2495's avatar
Adnan2495
Copper Contributor
Jul 15, 2021

where to add PnPTelemetry code in SPFX PnP solution

Hi all,

I need to include PnP Telemetry in my code. I am working on SPFX React based solution. I haven't used it before. Can you guide me where to use  below lines of code, in Constructor or render method?

const telemetry = PnPTelemetry.getInstance();
telemetry.optOut();

This is one of app deployment requirement, haven't found much documentation about it. Will apricate your help on this.

No RepliesBe the first to reply

Resources