SEO + AEO on AutopilotFrom the team at Stackmatix
The Growth Library

Count a Content Audience With Set Unions Instead of Summed Page Users

Reconcile per-guide distinct user counts with a library-level audience using a populated set-union example, preserving identity scope and missing coverage.

Do not add the user counts for individual guides and label the result the library’s unique audience. The same observed identity can visit several guides. Page-level counts describe overlapping sets; a library-level distinct count needs their union under one consistent identity and reporting definition.

Use a membership witness before trusting a dashboard total. It should show why the row sum can exceed the combined distinct count without any duplicate event defect. This is different from deduplicating event retries, constructing session keys, or diagnosing a consolidated other row.

Name the Metric and Identity Space

Google’s Data API schema defines totalUsers as distinct users who logged at least one event. Retain the exact requested metric and dimension scope. A generic Users heading can conceal a different measure; this worked example does not claim to reproduce every GA4 reporting identity or estimation method.

For an already authorized warehouse analysis, record dataset namespace, permitted identifier policy, date interval and eligible event population. A pseudonymous identifier is not proof of a unique human. Do not collect new identifiers or invent cross-device stitching merely to make sets easier to reconcile.

The session-key contract protects a different unit. Three events can form one session, and one observed identity can contribute to several sessions and several guide sets. Choose the question before choosing the key.

Inspect the Complete Membership Witness

The following invented aliases represent six observable identities under one declared namespace and period. A check means the identity had at least one eligible observation for the guide. It does not count views, sessions, organizations or verified prospects.

AliasGuide AGuide BGuide CGuide DGuide E
R1YesNoNoYesNo
R2YesYesNoNoNo
R3YesYesNoNoNo
R4NoYesYesNoNo
R5NoNoYesYesNo
R6NoNoNoNoYes

Guide counts are A 3, B 3, C 2, D 2 and E 1. Their sum is eleven guide-identity memberships. The union contains six identities. Neither count is wrong when correctly labeled; the error would be calling eleven the combined distinct audience.

There are five memberships beyond the first membership per identity: R1 through R5 each appears in two guides, while R6 appears in one. This particular witness has no identity in three guides. Do not generalize that pattern to a larger library or subtract arbitrary pairwise overlaps without checking higher-order intersections.

Execute a Union Rather Than an Average

This local Python uses only synthetic aliases. It verifies the populated witness, a disjoint-resource case and a namespaced collision. It does not query a property or infer identities that the reporting surface does not expose.

guides = {'A': {'R1', 'R2', 'R3'}, 'B': {'R2', 'R3', 'R4'},
          'C': {'R4', 'R5'}, 'D': {'R1', 'R5'}, 'E': {'R6'}}
row_sum = sum(len(v) for v in guides.values())
combined = set().union(*guides.values())
assert row_sum == 11 and len(combined) == 6
assert guides['A'] & guides['B'] == {'R2', 'R3'}
assert sum(sum(r in v for v in guides.values()) - 1 for r in combined) == 5
assert len({'R1'} | {'R2'}) == 2
namespaced = {('property-1', 'R1'), ('property-2', 'R1')}
assert len(namespaced) == 2
assert len({alias for namespace, alias in namespaced}) == 1

The last assertion demonstrates the defect, not the desired merge. Removing namespace collapses two distinct source identities into one equal-looking alias. The union is meaningful only after identity equivalence has been justified. A mathematically correct set operation can still operate on the wrong keys.

Keep Missing Identity Outside the Known Union

Now add two synthetic eligible events whose required identifier is unavailable. They do not automatically add two users, and they must not be assigned to the six known aliases. Report six known observable identities plus two unresolved-identity events, retaining the different units.

Do not create a shared “unknown user” key and count it as a seventh person. Do not generate a fresh random identity for every missing event and report eight people. Those choices fabricate membership information absent from the source.

The measurement-gap record keeps that coverage visible. A missing identifier can result from the permitted collection context or a technical extraction issue; the aggregate absence alone does not determine which explanation applies.

Use an Appropriate Combined Report

A report that returns only A3 and B3 does not reveal their intersection. Their combined distinct count could range from three to six under the simple same-namespace set model. Do not choose five because it seems plausible, or use this fictional witness’s overlap as a correction factor.

Where the existing authorized reporting system supports the desired combined population, request its appropriately scoped distinct metric and preserve its quality context. That is preferable to reconstructing hidden membership from aggregates. If only per-page rows are available, label their sum memberships or omit the unsupported unique total.

The quality-state review covers identity, sampling and threshold context. An interface’s distinct-user metric may involve processing or estimation that differs from an exact union of available export aliases. A discrepancy is a comparison to investigate, not proof that either surface must be a census of humans.

Avoid False Business Conclusions

Eleven guide memberships and six observed identities indicate repeated coverage within this synthetic model. They do not establish that the library persuaded five additional prospects, that the second guide caused a return, or that every identity saw every relevant instruction.

For downstream outcomes, keep the commercial unit separate. An organization can contain several observed identities; a shared device can also serve more than one person. The organization-quality review defines that different resolution problem without promoting a browser alias to a qualified account.

Preserve the guide roster, window, identity policy, row counts, combined count when supported and unresolved coverage. Approve the report when each number keeps its own unit and scope. A lower combined count than the page sum can be the expected result of useful overlapping readership, not a tracking failure or lost demand.

Sources

Matt Pru

Co-founder and CEO of Stackmatix. Writing about growth, customer acquisition, and the decisions behind useful marketing. Connect on LinkedIn.

Developed with AI assistance under Matt's editorial direction. Our Editorial Approach