-
Inaccurate tracking of PayPal transactions in GA4 using GTM integration
I’m trying to get a handle on some transactions tracking in Google Analytics 4. The website lets customers pay through two methods, either PayPal or credit card. The whole credit card process happens within the site, thanks to an iFrame. With PayPal, it’s a little different as customers need to head over to PayPal’s website, complete the purchase, and then they’re zipped back over to our site. It seems like all the credit card transactions are being picked up by GA4, but PayPal ones are acting a bit shy.
To understand the issue, I’ve used GA4 DebugView to do a bit of detective work, along with the GTM Tag Assistant. It seems like the datalayer for PayPal transactions is behaving as it should, it doesn’t appear to be the culprit. The strange thing is, even when the purchase event goes off successfully and all the datalayer variables are accurate after the customer returns from PayPal, the tag that was supposed to send purchase data back to GA4 decides to sit this one out. I’m wondering if the order of events might be causing this snag. Is it possible that the datalayer fires before the tag could even load, all because the user was taken off the site? At this point, it’s just a guess.
What I’m sure of is, it’s definitely not an issue about referral exclusion. We’re not dealing with data being filtered out of Analytics because it’s not even reaching there in the first place – ruling out the possibility of payment gateway referral exclusions being the cause.
Log in to reply.