Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想列出当前用户使用的搜索词。
还有用户已经输入的类别。
因此,在评论部分中提到了 magento 记录搜索查询,但不是用户。
要记录用户对某个类别的访问,您可以观察以下事件:
Mage::dispatchEvent( 'catalog_controller_category_init_after', array( 'category' => $category, 'controller_action' => $this ) );
要记录用户的搜索,我建议观察事件:
catalogsearch_query_save_after