fix: fixed tagular console error if cohesion script is not loaded (#1452)

Co-authored-by: Ayesha Waris <ayesha.waris@192.168.10.3>
This commit is contained in:
ayesha waris
2025-03-19 23:31:59 +05:00
committed by GitHub
parent 0dca6f3fdc
commit 945af2bdfd

View File

@@ -15,7 +15,7 @@ const trackCohesionEvent = (eventData) => {
text: eventData.webElementText,
name: eventData.webElementName,
};
window.tagular('beam', {
window.tagular?.('beam', {
'@type': EVENT_TYPES.ElementClicked,
webElement,
});