Reading starts here
ChurnAtlas

Amplitude user records: 5 checks for health scores

Short answer. Check Amplitude user records before a health score refresh: inspect IDs, retry behavior, response codes and group limits using requests and logs.

ChurnAtlas Editorial Team. How posts are made is set out in the editorial standards.

Published · Sources checked · 11 min read

  1. Inputs The signals you track and the date each one last arrived.
  2. Decision What each signal means for this customer, and which ones are missing.
  3. Next action Check the oldest signal first, then ask the customer what has changed.

Check Amplitude user records for missing IDs, short identifiers, repeated insert_ids, oversized requests and group limits before using their counts in health scores.

Key takeaways

  • Inspect outbound requests alongside received events.
  • Check identifiers and any deliberate minimum-length override.
  • Preserve insert_ids when retrying the same logical event.
  • Review response logs and test batch splitting.
  • Count group types and values before refreshing scores.

If a score reads usage counts from Amplitude, it treats each count as a fact about a customer. That is reasonable only after you know the records arrived intact and mean what you think they mean.

For a CS analyst, the gap is easy to miss. The score is a single number on a dashboard, and the path that produced it runs through a sender, a batch, an ID, and a set of fields that the customer never sees. When a number moves unexpectedly, it is worth asking whether the customer changed or the records did. This post helps you answer that question for the part of the path that Amplitude documents.

This post gives you 5 checks to run on Amplitude user records before they feed a score. Each check ties to a rule or limit stated in Amplitude's own API documentation, and each one ends with a question you can answer with your own data. The rules here come from the pages linked below. They are not general truths about analytics tools, and your pipeline may handle some cases differently.

Check 1: Every event needs a user_id or device_id

Each event should carry a user_id or a device_id, because an event without either can be rejected. The HTTP V2 API page says that if an event has neither value, Amplitude can reject it with a 400 status.

A rejected event never becomes part of the record your score reads. If the event was a login, a page view, or a feature click, the usage figure is lower than the customer's real activity, and nothing in the score itself shows that a signal went missing. The score looks like a quiet customer when the real problem is in the data path.

Start by pulling a sample of the requests your pipeline sends for a recent week. Count the events that have neither field. Then compare that count with what your product team expects to see. If the numbers do not match, find out whether the events were rejected, never sent, or sent without the field. Do not assume the score is right because the dashboard looks normal.

Sorting the sample by customer helps. Suppose one customer's events in the sample all carry a device_id and none carry a user_id. Ask whether the sender ever sets a user_id for that customer. Inspect identity mapping and the score's aggregation logic with this customer record matching guide.

The Identify API page has a related point about new users. It says that if you send a request with a user_id that is not in the Amplitude system yet, the user tied to that user_id is not marked new until their first event.

This matters if your score uses the new-user flag to decide when a customer started using the product. Check that timing against the first event on the record, not against the day the identify call was sent. Otherwise the start date in your score may reflect the sending system's timing rather than the customer's first use.

When you report a failed check, name the rule and where it is stated. A note that says events with no ID break the 400 rule gives an engineer something specific to test. A note that says the data looks off does not.

The question to answer: does every event on each record carry a user_id or device_id, and does any new-user logic in your score wait for a first event?

Check 2: IDs must be at least 5 characters unless you override the minimum

Each ID must have a minimum length of 5 characters, unless your request overrides that minimum with the min_id_length option. The HTTP V2 API page documents this rule.

Short values can come from many places: test accounts, older systems that were migrated, or values typed by hand during setup. This post cannot tell you which of these apply to your data. What you can do is measure them. Count how many IDs in your sample are under 5 characters, and group them by where they came from. A small number from one source is a different problem from a steady stream across all sources.

Take a simple example. Suppose a customer's account ID is four characters long, and it is sent as user_id or device_id on every one of that customer's events in the sample. You cannot tell from the rule alone whether the score is wrong, but you now know exactly which records to look at, and that is the start of a useful investigation.

Once you know the count, you have two choices. You can correct the short IDs upstream, so they meet the minimum before they reach Amplitude. Or you can pass the min_id_length option with the requests that carry them. The second choice is a decision made at request time, and it changes the minimum only for those requests. Either way, write the decision down. A health score is easier to explain to a manager or a customer success lead when every input has a known origin and a known rule behind it.

Check whether identifiers are accepted and map correctly; ID length alone does not determine scoring weight.

Record the minimum in the same place as your other data rules. When someone later asks why a short ID is missing from a report, the answer should be easy to find without rereading the sender's code. The rule is short, which makes it easy to forget that it exists.

The question to answer: how many of your IDs fall under 5 characters, and for each group, did you fix them or pass the override on purpose?

Check 3: Repeated insert_ids within 7 days are ignored

Amplitude ignores a later event that reuses an insert_id seen on the same device_id in the same app within the past 7 days. Check whether your pipeline reuses insert_ids when it retries, because a retry that keeps the original value can be ignored.

The HTTP V2 API page ties this rule to events with a device_id value.

If your sender generates a new insert_id for a retry, this rule cannot match it to the original event, and counts can inflate if the original was accepted. Preserve the identifier when retrying the same logical event.

This matters for a score because event counts may be one of its inputs. A score that depends on counts inherits whatever the retry logic does. If retries are dropped in one place and duplicated in another, the score will mix two different kinds of error, and the mix is hard to untangle after the fact.

To check this, pick a few events, force a retry in a test environment, and see what appears in the data. Compare the number of events you meant to send with the number that show up. If the two numbers differ by more than you expected, trace the difference back to the retry logic before you let those counts into a score. Keep a note of which events you tested, so the result can be repeated later.

Keep the two kinds of event separate in your check results. Test events with and without a device_id separately, and record the observed counts for each.

The question to answer: does your sender reuse insert_ids on retries, and have you confirmed the effect on counts for events that carry a device_id?

Illustrative example: Compare intended and received counts

Suppose you send 10 distinct events in a test environment, then retry the same events. Compare the received count with the intended 10. Inspect the outbound insert_ids and response logs to explain any difference before using those counts in a score.

Check 4: Requests over the size limits return a 413 error

If you exceed Amplitude's size limits, you get a 413 error. The HTTP V2 API page sets out those limits. Check the current limits there before testing batch sizes.

Your sender needs to handle that response as a failure, not as a success that happened to take a while. If the sender logs only an overall success rate and ignores the response codes, a rejected batch can go unnoticed, and the score built on the rest of the data will look complete when it is not.

Start by logging every response code from the sender, not just the failures. Then look for 413 responses over a recent period. If you find any, check how the sender builds its batches. A batch built by event count alone may or may not keep each request under the size limits on the page, because those limits are about size. Make the sender split large batches into smaller ones, and test that path with a large sample before you trust it.

There is also a planning point here. A check that passed last quarter may not pass this quarter. That is a reason to keep the size check in the routine, not in a one-time setup review.

Consider what a 413 means for your reports. If a batch is refused and nobody retries it, the events in that batch are missing from the record your score reads. The missing events do not announce themselves. One way to catch missing batches is to review response codes; also reconcile source events against received events.

If you have a test environment, send one oversized batch there and read the response. You are checking that your sender reacts to the 413 the way you expect, and you are learning what that response looks like in your own logs before a real batch depends on it.

The question to answer: does your sender log every response code, and does it split batches when a request is too large?

Check 5: Each event carries at most 5 group types and 10 group values

Each event can track up to 5 unique group types and 10 total group values, according to the HTTP V2 API page. If your health score rolls usage up to accounts through group fields, this cap shapes how you can design that rollup.

Start by counting the group types and group values on a sample of events. Look at how many distinct group types appear on each event, and how many total group values it carries. Compare those counts with the caps. If some events sit at or near the limit, write those down, because a later change to the product or the sender could push them past it.

Take a simple example. Suppose an event is meant to carry an account, a team, a region, a plan, and a sales owner as group types. That is five group types, which is the cap. Adding a sixth group type to the same event would go past it under the rule as quoted. The fix is a decision about which groups the event really needs, made before the data is sent, not after the rollup breaks.

Do not assume the extra groups are kept or dropped. Read the HTTP V2 page for that behavior, then test one event that goes over the limit in a safe environment. Record what you find, because that result decides whether your account rollup is complete.

When you design the rollup, decide which groups matter most for the score. Limiting the groups an event carries is a design choice you make before the data arrives. It is much easier to make that choice on purpose than to discover the cap later and find that some accounts are missing a group the score depended on.

Group values can also multiply the work in a report. If a group is needed for only one report, ask whether it belongs on the event at all.

The question to answer: on your sample, does any event carry more than 5 unique group types or 10 total group values, and do you know what happens when one does?

Run the checks before each score refresh

Run all 5 checks on a recent sample before each score refresh, and keep the results next to the score.

Keep the results in a simple log with the date, the sample size, and the count for each check. When a score moves sharply, that log lets you ask a useful question first: did the inputs change, or did the checks change? Without a record, that question is hard to answer, and the team ends up debating the score when it should be debating the data.

Bring the results to whoever owns the analytics setup. Some answers will require an engineer, because the fix may sit in the sender, not in the score. Others will require a decision from the customer success team, such as whether to pass an override or to fix a value upstream. Make both kinds of decision visible, and name an owner for each open item.

When you share the results with leadership, lead with what you checked and what you found, not with the score. A table with the five checks, the sample size, and the outcome for each will do more to build trust than a paragraph of reassurance.

Today, pick one customer you know well and pull the raw events, corresponding outbound requests and response logs. Run the checks, including a controlled retry test, and record the findings before the next score refresh.

Before you refresh the score

What does a passing sample establish?

A passing sample establishes only what you observed in those requests, logs and controlled tests. It does not prove the records match what happened with each customer.

Do these checks validate the scoring formula?

These checks do not test your scoring formula, your weights, or your thresholds. Review those separately with the health score setup guide. A score built on clean records can still be wrong about a customer.

Related guides: Account activity history: 5 rules for renewal research · Check portal rules on 4 billing tools before sharing.

Sources

Limits of this post

This post is general operational information, not legal advice about notice periods or renewal clauses. It does not promise that any method keeps a customer. Software can get a fact wrong, so open the sources before you act.