Custom Events
// Function to handle the custom event trigger
const session = YofiTelemetry.startSession(yourSessionConfig);
const AddCustomEvent = () => {
const eventName = 'TargetElementCreated'; // Example event name
const eventKey = 'input-field'; // Example event key (can be the input ID, for instance)
const properties = { 'DataType': 'FirstName', 'Value': "YOUR VALUE" }; // Example custom properties
session.addCustomEvent(eventName, eventKey, properties);
};Parameters:
Last updated
Was this helpful?