How to filter visitors based on product viewed/purchased?

Is there any way I can create a segment based on a product viewed/purchased by the user by product SKU or product name?

Hi @ruchitrami
It is not possible yet, feel free to create a feature request at Issues · matomo-org/piwik · GitHub