Reports a standard or custom analytics event to external analytics tools connected to a site, such as Google Analytics, Facebook Pixel, or tools set up with Google Tag Manager.
Note: Wix business solutions, such as Wix Stores or Wix Events, trigger standard events when the corresponding user action occurs on the site. However, standard events aren't automatically forwarded to external analytics platforms. Call trackEvent() to report them to connected platforms.
Learn more about:
Event name, either standard or custom. See About Analytics Events for a list of supported standard events.
Event data.
This method doesn't return any custom errors, but may return standard errors. Learn more about standard Wix errors.