After installing GA4 for 2.4.x cannot load category page
I just installed the ga4 extension in my magento 2.4.1 , when i tried to access one of my category page base_url/catalog/category/view/id/1404/?p=1&product_list_limit=50 , it returns HTTP ERROR 500. This category page have 1491 salable products inside it.
I noticed that in CoreLayoutRenderElementObserver.php execute function there is a code $transport->setOutput($html); , the $html with 367492 string length, when i print the $html variable it looks like containing all the category products data.
I tried to debug it further in WeltPixel/GA4/Block/Category.php and noticed that at getProductCollection() function, the code for setting the limit and page size it's not working properly and still returning the true size of the product collection without page limitation

-
Official comment
Thanks for your report! Our team has attempted to reproduce this on a clean Magento environment running the latest version of the module, using a Category Page with over 3000 products contained within it, but has been unsuccessful in doing so.
We've also not had any other reports in this regard, so it's possible this is an environment-related problem. If you're convinced this is a bug/issue in the extension, please open up a ticket with our Support Team. Ensure you include as many details as you can, as well as the replication steps on a clean Magento instance.
Comment actions -
Thank you for your update. However, we are still unable to find out why the pagination is not working within GA4 extension code fresh install (we’ve removed all previous/used extension code)
Could you please share any insights on what we could do to troubleshoot and share your screencaps results showing pagination working?
-
Our Support Team is more than happy to assist with this, as mentioned previously. You can open up a ticket here: https://support.weltpixel.com/hc/en-us
Just make sure you include all the details in your request!
-
Support Team: In some of the updates to GA4 module developers removed those lines:
$categoryProductListBlock->toHtml();
and
$searchResultListBlock->toHtml();
as a optimization (I suppose), but it makes this module incompatible with Elasticsuite (at least) - same problem as OP.
BR.
Przemek Czerkas -
We recommend opening up a ticket with our Technical Support Team here: https://support.weltpixel.com/hc/en-us/requests/new
Please sign in to leave a comment.


Comments
8 comments