Product Search Keyword Tracking
Product Search Keyword Tracking
Product search keywords in the Cortex are automatically stored in the TSEARCHTERMS table. To track the usage of product keywords, a Commerce Manager Quartz job named searchTermsAggregatorJob periodically scans TSEARCHTERMS and finds the frequency of a keyword as well as its last access date. The output of searchTermsAggregatorJob is stored in the TSEARCHTERMSACTIVITYSUMMARY table.
Activating searchTermsAggregatorJob
By default, searchTermsAggregatorJob, is disabled. To enable the job, follow the steps below:
- With an XML editor, open your .m2\settings.xml.
- Above the </profiles> tag, add the following profile:
<profile> <id>search-terms-aggregator</id> <properties> <ep.cm.triggers.searchterms.aggregator> searchTermsAggregatorTriggers </ep.cm.triggers.searchterms.aggregator> </properties> </profile>
- Add the following active profile under <activeProfiles>:
<activeProfile>search-terms-aggregator</activeProfile>
- Save your changes.
- With an XML editor, open your Core extension's ep-core-plugin.xml.
- Add the following alias before the </beans> tag:
<alias name="loggingSearchTermsActivityStrategy" alias="searchTermsActivityStrategy"/commerce-legacy/>
- Save your changes.
- Rebuild your Core extension project and Commerce Manager Server to apply your changes.