Catalog Interaction

A Catalog interaction is the standard interaction used to capture a customer's engagement with any trackable item from your catalog, such as products, categories, articles, and so on.

The primary purpose is to capture what the user is currently viewing or engaging with, along with all the relevant metadata for that item.

The Catalog Interaction is defined within the main interaction object of the event payload.

Field NameField TypeDescription
namestringRequired. The type of interaction that occurred. Use the standard SDK constants for this field. For example, View Catalog Object.
catalogObject.idstringRequired. A unique ID representing the catalog object.
catalogObject.typestringRequired. The defined type of the catalog item. For example, Product, Blog, and so on.
catalogObject.attributesobjectA dictionary of user-supplied values.
catalogObject.relatedCatalogObjectsobjectA dictionary of related catalog objects.

This example event shows required fields (name, type, id) and optional fields (attributes, relatedCatalogObjects) within the interaction payload.

Always use the built-in constants for the interaction.name field to ensure consistency across your instrumentation.

Interaction NameValue
SalesforceInteractions.CatalogObjectInteractionName.ViewCatalogObjectView Catalog Object
SalesforceInteractions.CatalogObjectInteractionName.ViewCatalogObjectDetailView Catalog Object Detail
SalesforceInteractions.CatalogObjectInteractionName.FavoriteCatalogObjectFavorite Catalog Object
SalesforceInteractions.CatalogObjectInteractionName.CommentCatalogObjectComment Catalog Object
SalesforceInteractions.CatalogObjectInteractionName.ReviewCatalogObjectReview Catalog Object
SalesforceInteractions.CatalogObjectInteractionName.ShareCatalogObjectShare Catalog Object
SalesforceInteractions.CatalogObjectInteractionName.QuickViewCatalogObjectQuick View Catalog Object

This example shows how to capture a catalog interaction using a sendEvent() call, typically triggered by a user action like clicking a "quick view" button.

When tracking order interactions that occur upon page load (like viewing a product detail page), use the Sitemap configuration. This ensures the event fires consistently and loads necessary data for the catalog object.

Here’s how a catalog interaction is captured using the sitemap.

See Also