Skip to main content
Solved

Data discrepancy between our DB and Amplitude


Hello!

I’m looking to brainstorm solutions for a data discrepancy issue I have between my website’s production database and Amplitude. The discrepancy is with an event we call “Article View”. Our DB tracks an article view on the backend, and originally I setup Amplitude tracking on the frontend. The difference was quite surprising (several thousand view difference), so I decided to track this event on the server and in the same block of code where we track article views for our database. This has produced much better results, but there is still a difference in event volumes (only ~200 event total difference now). 

Has anyone else had a similar issue and found a fix? Is this type of problem to be expected? Would really appreciate any help, thanks!

Best answer by Saish Redkar

Hi @Scott Kieronski 

We encounter this quite frequently and one of the most common reasons we suspected is the presence of some extensions/ad blockers on the user’s browser. This can block some frontend events based on what library is being loaded / not loaded. There could be other reasons as well, but this seems to be the major one.
Hope this helps.

View original
Did this topic help you find an answer to your question?

5 replies

Saish Redkar
Expert
Forum|alt.badge.img+10
  • Expert
  • 1377 replies
  • Answer
  • August 29, 2023

Hi @Scott Kieronski 

We encounter this quite frequently and one of the most common reasons we suspected is the presence of some extensions/ad blockers on the user’s browser. This can block some frontend events based on what library is being loaded / not loaded. There could be other reasons as well, but this seems to be the major one.
Hope this helps.


Thanks Saish,

I can definitely see that affecting amplitude output too. Would extensions/ad blockers affect server-side events as well?


Saish Redkar
Expert
Forum|alt.badge.img+10

It shouldn’t normally. Only in cases when a device id sends too many events in a short time, then the HTTP API throttles the events. This can cause some event loss if error handling isn’t in place.


Forum|alt.badge.img+1
  • Experienced
  • 13 replies
  • March 14, 2025

Data discrepancies between your database and Amplitude happen pretty often. One common reason is event delays since Amplitude processes data differently, sometimes with batching or ingestion lag. Another thing to check is whether your database stores raw events while Amplitude applies filtering or sampling, which can change the numbers. Also, if User IDs aren’t set consistently, some events might get assigned to different users. Try comparing raw event logs from both to spot where the difference comes from.


Forum|alt.badge.img+1
  • Experienced
  • 13 replies
  • March 17, 2025

A few things that could be causing it—event delays, since Amplitude might process data in batches, filtering differences where Amplitude excludes bots or applies sampling, or user identification issues if some events don’t have a consistent User ID. Best way to troubleshoot is to pull raw event logs from both and compare timestamps to see where the numbers start to diverge.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings