Configure the InnerworksMetrics class and begin collecting metrics in ngAfterViewInit:
appId - your project ID from Innerworks
detectionType - The type of detection (and therefore metric collection) that is required. Options are ‘BotDetection’, ‘VPN’, ‘Fingerprinting’.
signInButtonDomSelector - a DOM ID from the button you will use to submit data, this is so the SDK can pull mouse movement and click data from interactions with the button.
logLevel (optional) - set the minimum log level, requires ones of trace, debug, info, warn, error, silent.
silentLogs (optional) - boolean value to mute all logs from SDK
On a key interaction on the page (like a sign in), send the metrics to Innerworks by calling innerworksMetrics.send.
Be aware you need to pass a unique ID at this point. This allows Innerworks to uniquely link a user with their data. You need to ensure that you are able to retrieve the user ID at this point.