QuestionQ44

VerifiedContent, CMS, and Storefront

An Architect is assessing a custom module that logs customer activity data on the storefront through observers. The client reports that logs were created while the client previewed storefront catalog pages from the Admin Panel for a future scheduled campaign by using Adobe Commerce staging-preview functionality.

What should the Architect check first to resolve this issue?

Explanation

Adobe Commerce campaign preview emulates the customer storefront for the scheduled campaign. During staging preview, Magento\Staging\Model\Event\Manager suppresses configured observers through its bannedObservers dependency-injection parameter; custom logging observers should be included in, or checked against, that list so preview activity is not logged as customer activity.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!