The button is linked to a lightbox, not through code, so super straight forward.
However, when I add a tracking event to it in the code, the link to the lightbox stops working.
Here’s the code I’m using:
export function button2_click(event) {
wixWindow.trackEvent("CustomEvent", {
"event": "Clicked Find me a Doctor",
"eventCategory": "Button",
"eventAction": "Click",
"eventLabel": "Clicked Find me a Doctor"
} );
}
Any idea why is that happening? does the code overwrites the link?