chrisblakley / Nebula

Nebula is a WordPress theme framework that focuses on enhancing development. The core features of Nebula make it a powerful tool for designing, developing, and analyzing WordPress websites consistently, yet its deliberately uncomplicated code syntax also serves as a learning resource for programmers themselves.
https://nebula.gearside.com
GNU General Public License v2.0
141 stars 36 forks source link

Need to find a more reliable way to capture ecommerce purchase pricing for GA4 revenue reports #2246

Closed chrisblakley closed 1 year ago

chrisblakley commented 1 year ago

We are tracking purchase clicks in JS, but that does not include pricing information. I do not think that the JS-side would be an accurate way to track that, though- since the data is from woocommerce specifically on the server-side. I don't want to use the measurement protocol, but I'd like to find a way to more accurately send the order complete "purchase" event along with all of the product information– variations, pricing, shipping, etc. to GA4.

We used to rely on a plugin for this, but they are all bloated now. Maybe we can take another look or find a simple way to do it in Nebula?

Related: #2224 #1774

chrisblakley commented 1 year ago

This might be a good option: https://wordpress.org/plugins/woocommerce-google-analytics-integration/

https://woocommerce.com/document/google-analytics-integration/

chrisblakley commented 1 year ago

That plugin seems to be working. Getting revenue and more specific product data now in GA4. I have added it to the Nebula bundled plugin list.

I have also commented out all of the warnings related to other GA ecommerce plugins. We're gonna start from scratch there and maybe don't even need to bring them back...