OFFLINE-GmbH / oc-mall-plugin

:convenience_store: E-commerce solution for October CMS
https://offline-gmbh.github.io/oc-mall-plugin
MIT License
167 stars 112 forks source link

GA4 Ecommerce? #926

Open kevinvermeulenn opened 2 years ago

kevinvermeulenn commented 2 years ago

Is this plugin ready for Google Analytics 4 with the predefined events?

PubliAlex commented 2 years ago

I don't think so, as everything with october, as you have total control over the template, you can add them by yourself

tobias-kuendig commented 2 years ago

This is currently untested and I do not have any knowledge about GA4 in particular, so I'm probably not the best person to build this feature. But as @PubliAlex mentioned, customizing the partials can go a long way.

PRs from the community are of course welcome.

damsfx commented 1 year ago

I'm trying to set up GA4 on a site (given the approaching deadline for GUA) ... first with the partials and if it works well, I'll propose a PR.

Nevertheless, I have a few questions:

damsfx commented 11 months ago

@tobias-kuendig I'm continuing to integrate GA4, but I'm encountering a few difficulties.

When I listen to the mall.wishlist.productAdded event, according to the documentation :

This component emits a mall.wishlist.productAdded JavaScript event when a product was added to a wishlist. You can subscribe to this event and receive the added product's information.

But the data passed to the event doesn't seem to contain any information about the product added to the wishlist.