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: rcl_swatch_clicked The event is dispatched on window and includes detailed information about the clicked swatch and related product. Event detail properties: Property Type Description optionValue string Swatch label such as "Blue" | productId | number | Shopify product
Few readers