Go to website
Back
Articles on:
Integrations
Connect swatch interactions with analytics or custom tracking using the event API.
Swatch Click Event API
Rubik Combined Listings emits a custom JavaScript event whenever a swatch is clicked. This allows developers to track interactions, trigger analytics events, or build custom logic. Event name: rclswatchclicked The event is dispatched on window and includes detailed information about the clicked swatch and related product. Event detail properties:
Few readers