About Analytics Events

Analytics events are notifications about site visitor actions performed on a Wix site. You can integrate external analytics platforms such as Google Analytics or Facebook Pixel to track visitor behavior and measure performance.

There are 2 types of analytics events: standard events and custom events.

Standard events

Wix business solutions, such as Wix Stores or Wix Events, trigger standard events automatically. For example, when a visitor adds a product to their cart on a site with Wix Stores, Wix triggers an AddToCart event.

Standard events are organized into the following categories:

  • General events: Basic site interactions such as page views, content views, and form submissions.
  • Wix Bookings events: Service booking and appointment scheduling.
  • Wix Events events: Event ticket bookings, registrations, and RSVP tracking.
  • Wix Members events: Sign-ups or logins to Wix Members.
  • Wix Stores events: eCommerce interactions such as product views, cart actions, and purchases.

Wix doesn't automatically forward standard events to external analytics platforms. To report them, call Track Event in your embedded script code.

Custom events

Custom events are events you define to track visitor actions or behaviors not covered by standard events. To report a custom event, call Track Event with an event name that you assign, and any relevant event data.

There are 2 common scenarios where you call Track Event:

  • Apps made by Wix: An app made by Wix is on the site, but you want to track something it doesn't cover. For example, your app extends a Wix Stores site with a shipping rates service plugin and a map component that lets buyers select their delivery location. To track how many times buyers interact with the map, call Track Event with a custom event.

  • Custom-built solutions: The component or flow wasn't built by Wix, such as a headless flow or a Wix app with some custom business logic. No events are triggered automatically, so you call Track Event to report standard or custom events to connected analytics platforms.

Custom event data

When reporting a custom event by calling Track Event, you can include any event data you need. However, some external analytics platforms require certain properties, such as eventCategory and eventAction.

Listen for analytics events

Wix triggers standard analytics events automatically, but external platforms don't receive them unless you explicitly report them by calling Track Event. You can also register event handlers for debugging, logging, or forwarding events to a custom destination. Learn more about analyzing user behavior with embedded scripts.

See also

Did this help?