I am trying to setup tracking button events, and have 3 different buttons on the one page I need to track.
I added the code below, but Analytics is only tracking the first button's click, not the following two. What do I need to update to make sure it tracks all 3 separately? Thanks!!
import wixWindow from 'wix-window'; export function emailus_click(event, $w) { //Add your code for this event here: wixWindow.trackEvent("CustomEvent", { "event": "Click to Email", "eventCategory": "Contacting", "eventAction": "Email", }); } export function schedulecall_click(event, $w) { //Add your code for this event here: wixWindow.trackEvent("CustomEvent", { "event": "Click to Schedule Call", "eventCategory": "Contacting", "eventAction": "Schedule Call", }); } export function calldirectly_click(event, $w) { //Add your code for this event here: wixWindow.trackEvent("CustomEvent", { "event": "Click to Call Directly", "eventCategory": "Contacting", "eventAction": "Calling Us", }); }