How uniqueness gets counted without counting anything
The naive way to compute "unique visitors" is to store every scan, then run a query later that counts distinct visitor hashes per code — correct, but it gets slower as the history grows, since the database has to look at every row to answer the question. This platform does it differently: uniqueness is a side effect of a database constraint, not a query. Alongside every code, there's a lightweight table pairing a code with a visitor hash, with a uniqueness rule enforced on that exact pairing. The first time hash X scans code Y, that pairing gets inserted successfully, and both the total and unique counters go up by one in the same step. The second time the identical hash scans the identical code, inserting that same pairing again fails outright — the database itself refuses the duplicate — and that failure is the signal to bump only the total counter, not the unique one.
The practical result is that "is this visitor new to this code" is answered in constant time, not by scanning history, no matter whether a code has nine scans or nine thousand. It also means the whole scan-logging step runs without ever blocking the actual redirect on it: the write happens after the visitor's already on their way to the real destination, and if it fails for any reason — a database hiccup, a malformed field — that failure is caught and logged server-side, never surfaced to the person scanning and never able to turn a working code into a broken one. Analytics being wrong for a moment is an acceptable failure; a QR code that stops redirecting because its own logging broke is not, and the two are kept structurally incapable of affecting each other.
An honest limitation
What gets logged is that a scan resolved successfully to a destination — not what happened once someone got there. A vCard code's event log tells you it was opened; it doesn't tell you whether the person actually tapped "save contact," the way a landing page's event log tells you the redirect fired but not whether anyone read past the first line or clicked through. Measuring attention (a scan happened) and measuring action (something was done with it) are genuinely different questions, and only the first one is answered today. If you need to know the second, that's not something this feature currently does.