Skip to content

Event Tag Analytics not loaded on category pages #322

@gjportegies

Description

@gjportegies

Our customer just enabled the Event Tag functionality, but no data is showing in the Tweakwise dashboard "No Clicks Yet: There are no clicks recorded for this builder.".

The customer uses the Hyva module as well, where I just reported another issue.
But it seems that on category pages the analytics are not loaded.

If I take a look at the catalog_category_view.xml file, the analytics.phtml is wrapped inside the "tweakwise.catalog.product.featured.before" block where the featured products configuration is checked ifconfig="tweakwise/recommendations/featured_enabled

<block class="Tweakwise\Magento2Tweakwise\Block\Catalog\Product\ProductList\Featured"
name="tweakwise.catalog.product.featured.before"
ifconfig="tweakwise/recommendations/featured_enabled"
template="Magento_Catalog::product/list/items.phtml">
<arguments>
<argument name="type" xsi:type="string">new</argument>
</arguments>
<block class="Magento\Catalog\Block\Product\AbstractProduct"
name="tweakwise.catalog.linked.product.list.item"
template="Tweakwise_Magento2Tweakwise::product/list/linked-item.phtml"
ifconfig="tweakwise/merchandising_builder/personal_merchandising/enabled"/>
<block class="Magento\Framework\View\Element\Template" name="magento2tweakwise.analytics" template="Tweakwise_Magento2Tweakwise::analytics.phtml" ifconfig="tweakwise/general/analytics_enabled">
<arguments>
<argument name="tweakwise_navigation_config" xsi:type="object">Tweakwise\Magento2Tweakwise\Model\NavigationConfig\Category</argument>
</arguments>
</block>

Shouldn't the analytics be loaded when only the merchandising builder is enabled?

Docs: https://docs.tweakwise.com/reference/magento-adoption-matrix#/event-tag

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions