πŸ‡ΊπŸ‡ΈUnited States @deja711

Account created on 4 February 2010, almost 15 years ago
#

Recent comments

πŸ‡ΊπŸ‡ΈUnited States deja711

@philsward:
Regarding your 1 in 4 issues. Please check that order complete page is being generated/captured, that was my issue with paypal. You should not settle for 1 in 4 detections, as it might be something simple. Thank you for sharing about Stripe, I will have to check it out. For your authorize.net sites, don't forget to login there and increase your security/antifraud measures (you probably know that, but just in case).
Regarding GA4, I will keep you in the loop as we make progress. We are adding add-to-cart, remove-cart, initiate-checkout, and product-details-view to GA4 events. If you look right now you will see that GA4 is not getting that data. That is because the previous UA/GA3 did not send that data either. We just figured out we can put it all in uc_googleanalytics and use hooks for each of those events.

@ohanm:
Good observation. The latest shimmed GA4 version (latest patch) gave me problems. I am not sure if is fully ready, not sure if it worked for you or gave you issues. I will have to return to it and check it out more and see how it works. Following are some questions or areas I need to understand:
A) It is not clear to me where shims would come to play besides in uc_googleanalytics
B) uc_googleanalytics is missing a bunch of events I need to use for GA4. So I will have to add them to uc_googleanalytics.
C) We would like to run both GA4 and UA/GA3 in parallel right now until the end, and the way it is working for us is that we are simply sending the data via new GA4 framework. End result is that I can use both google analytics to analyze my data. I would like to know how others are doing here or what they think.

πŸ‡ΊπŸ‡ΈUnited States deja711

philsward, you are welcome. I am glad you got to try it. Regarding accurate reporting, I might have good news for you. We are using Authorize.net and paypal. Both GA3 and GA4 match when it comes to completed transactions. I did notice the following (which might affect you):
a) GA4 has 24h or so delay, not as instant as GA3. So to get accurate data I usually compare from 48 hours just to be sure.
b) For paypal, sometimes customers do not return to the checkout complete page and that does not trigger analytics. I tried to compensate for that with paypal automatic setting to return user to site, and that helped but did not eliminate it completely.

Also at the moment, we are using the google analytics version patched before shim was added. I am still to try and understand one with shim, which is current.

At the moment we are happy with data on GA4. It is correlating (we are running GA3/UA properly also in parallel). That is all fine. My biggest problem is that we do not have support for (view item details, Add/remove a product from a shopping cart, Initiate the checkout process). It looks like this was never implemented for uc_googleanalytics even in GA3/UA version. See here:
https://developers.google.com/analytics/devguides/collection/ga4/ecommer...

I am going to tackle that now, although I am not sure yet where I should place that code.

πŸ‡ΊπŸ‡ΈUnited States deja711

Fellas apologies for the delay. I have an update to uc_googleanaltycs code, that we had to do in rush. Attached is the patch. Sorry I did not post the patch here before. Also, excuse all watchdogs in there. We are still using them to debug. The solution works and it is tracking our sales. If you chose to try it, I recommend to leave/modify watchdog messages to you can evaluate them for your own eCommerce.
We did have to create a manufacturer field for our product so the brand can be tracked as well. Also thank you for contributing at the GA4 ( https://www.drupal.org/project/google_analytics/issues/3174214 ✨ Support Google Analytics 4/gtag.js Fixed ) I have used that and google resources to get this one done.

Production build 0.71.5 2024