Hi, I'm using Rudderstack with GA4 in hybrid mode,...
# support
p
Hi, I'm using Rudderstack with GA4 in hybrid mode, and I'm noticing a mismatch in GA4 where the number of conversions/purchases does not match the real world (it's higher in GA4 that in our system). Could there be some duplications happening, and do I have to dedup this somehow?
m
Hey There! 👋 Your message has been received by the RudderStack team. We will forward this request to your Technical Account Manager, and they will get back to you shortly. Please use the thread for any additional comments.
h
Hello @proud-animal-97803 If you are using RudderStack's GA4 alongside your own implementation of GA4, then some data mismatch issues are bound to happen. Here are a few reasons why: • RudderStack's CDN (SDK and Source Config) can get ad-blocked. ◦ You can set up a forwarding domain to mitigate this. • RudderStack's JS SDK file
rudder-analytics.min.js
can get ad-blocked. ◦ You can forward this file via your proxy with a different name or self-host your own copy. • It's not recommended to run multiple GA4 tags on the same webpage. ◦ Instead, you can set up a warehouse destination for the source of truth. I hope this helps. I'll let my colleague @bulky-breakfast-19942 add any further actions to take.
p
Hi Sai, I'm not running my own implementation of GA4. I'm running only Rudderstack. I don't see how ad blocks would cause duplication here, as GA4 is showing more conversions than there were in the system.
h
Hi Tim What do you mean by "system" here? How are you comparing the data?
p
I mean our own database that tracks purchases directly. This is the source of truth. In parallel we issue a RS track purchase event that sends this to GA4 and our warehouse (Postgres).
h
That seems weird. • What is the margin of difference? • Does Postgres data match your own database? • Can you confirm that GA4 for the same property is not deployed elsewhere? While you answer these, let me check with my team for more help.
p
Let me do some research and get back to you. I have two JS sources with different source IDs, one for staging, one for prod, so I doubt that there could be some kind of mix up since staging is not connected to any destinations. Thanks for your suggestions.
I realized just now that my warehouse is not synching. I get the following error when I manually try to resync: fetching schema from warehouse: fetching schema from warehouse: fetching schema: pq: no pg_hba.conf entry for host "23.20.96.9", user "warehouse_user", database "hive_warehouse", no encryption. Could it be that the setup failed silently? It would be great UX if RS showed you a successful setup of Warehouse, that is after the schema is created. Right now, as I inspect the DB schemas, I don't see any RS related schemas, only public, which means the setup failed silently without any feedback. Update: I deleted the destination and recreated it again, this time, selecting ssl as an option. Had no idea that it was required. The UI did not make it clear. Anyway, I don't have any historical data to compare the GA4 anomaly against, since I recreated the warehouse destination. I also think I figured out the duplication issue. It was on our side. We used subtotal instead of grandTotal as revenue for "Order Completed" conversion event. So that's solved.
h
@proud-animal-97803, it's great to know that issue has been resolved. On the warehouse setup, I'll relay the feedback to our team. Thank you!