magento2-serversideanalytics icon indicating copy to clipboard operation
magento2-serversideanalytics copied to clipboard

Events with user_id do not seem to get processed

Open indykoning opened this issue 10 months ago • 4 comments

We've had a hunt for an odd bug where some purchase events were not available in Analytics.

Responses were successful, no validationmessages returned from Google.

The common thread is the user id added to the request. https://github.com/elgentos/magento2-serversideanalytics/blob/a909ccb4ffe64b599e89aa82f7d09b6ec1dbf7bb/Model/SendPurchaseEvent.php#L111

indykoning avatar Jan 29 '25 16:01 indykoning

Okay, interesting, did you try this without the user_id?

WouterSteen avatar Jan 30 '25 07:01 WouterSteen

I've currently disabled sending the user_id for one of our customers who had issues with this, unfortunately analytics takes 48 hours to process the data pushed. So i hope to bring results on that on friday

indykoning avatar Jan 30 '25 09:01 indykoning

After applying the change all orders of the rest of the 29th (wednesday) seems to have come in correctly. We can't see much data of yesterday yet, but hoping more will trickle in as the day progresses

indykoning avatar Jan 31 '25 08:01 indykoning

Ok, lets try it :)

Ive merged a PR that removed this to master!

WouterSteen avatar Feb 05 '25 09:02 WouterSteen

Hi there,

Im curious if there is any validation that this problem has been fixed? Because I'm experiencing and chasing down a similar problem.

I have one project where the setup is working flawlessly. Ran multiple analysis where all the transactions are arriving in GA4.

But I've been having multiple customers are missing quite a lot of orders.

And the symptoms are the same;

  • Responses successful, no validationmessages returned from Google.

Will dive more deeply into it next week again. But was hoping to find some extra info.

  • All running hyva except one.
  • All running correct version of the module.
  • Some running magepal/ some running yireo. (which should not matter..)

Can't really find any other discrepancies except for specific versioning.

JuulGr avatar Nov 06 '25 08:11 JuulGr