To analyze the performance of your configuration, power our insights reports and support personalization, we capture key e-commerce events on your platform. These are events such as product views, item clicks, add-to-carts, and purchases.
Step 1: Enable Event Tag
To automatically enable Event Tag events, go to Stores > Configuration > Catalog > Tweakwise. Look for Send analytics events to tweakwise and set the value to Yes.
From version 8.7.0 the setting can be found under the section General:

In earlier versions, the setting can be found in the Merchandising Builder section (in some versions Personal Merchandising subsection):

Step 2: Check Item Click configuration
Item clicks work out of the box on a clean Luma/Hyvä theme. If you’ve customized your templates, a small tweak in the template or configuration may be needed.
Luma
To check if item clicks are working as expected:
- Go to Model\NavigationConfig.php.
- Go to the getJsFormConfig method.
- Check if
productSelector
matches your product tiles. Override the method and adapt if necessary. - If your tiles do not have a generic selector, add one and make sure this selector matches.
public function getJsFormConfig()
{
$navigationFormConfig = [
'tweakwiseNavigationForm' => [
// removed for brevity
'twRequestId' => $this->currentNavigationContext->getTweakwiseRequestId(),
'analyticsEvents' => $this->config->isAnalyticsEnabled(),
'productSelector' => 'product-item-info',
'analyticsEndpoint' => $this->getAnalyticsEndPoint(),
],
];
}
Note: search phrases, product view and purchases are supported from version 8.3.2. Item clicks from 8.5.0.
Hyvä
To check if item clicks are working as expected:
- Go to tweakwise/magento-tweakwise-hyva/src/frontend/templates/layer/navigation-form.phtml.
- Go to the getJsFormConfig method.
- Check if
productSelector
matches your product tiles. Override the method and adapt if necessary. - If your tiles do not have a generic selector, add one and make sure this selector matches.
function tweakwiseNavigationForm() {
return {
// removed for brevity
twRequestId: '',
analyticsEvents: false,
productSelector: '.product-item',
analyticsEndpoint: '/tweakwise/ajax/analytics',
initForm(initialValues) {
// removed for brevity
}
}
Note: search phrases, product view and purchases are supported from version 4.3.0. Item clicks from 4.4.0.
Notes
- Varnish (or a similar caching proxy) must be enabled and properly configured for personal merchandising to work properly in cached blocks. Enabling this can have impact on performance, caching of ajax filter requests will be disabled for requests which have a profile cookie value.