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

Reconstruct Exported Event Order Without Inventing Timestamp Precision

Reconstruct only the event and request ordering supported by GA4 export batch fields, preserving namespace boundaries and unresolved equal-timestamp cases.

Do not sort equal-timestamp GA4 export rows alphabetically and call that the reader’s action sequence. Inspect the available batch fields and their documented scopes. They can establish useful order within a batch and request order within a page, while leaving other relationships unresolved.

The deliverable is a partial-order witness: which pair of observations is ordered, which field supports that relationship, and whether it describes event occurrence, request sending or page assignment. Those are different kinds of order. A stable display order can be convenient without becoming evidence of a real journey.

Read Each Ordering Field Separately

Google’s export schema defines batch_event_index as sequential event order within a batch, based on occurrence on the device. It defines batch_ordering_id as increasing each time a network request is sent from a given page, and batch_page_id as a page number increasing for subsequent pages within an engagement.

The schema also says multiple events can share an event_timestamp when sent in the same request. Preserve its documented meaning and microsecond unit; do not manufacture hidden fractional timestamps to force a total order. The names of these fields do not create a universal cross-user sequence.

The observable-session contract determines grouping under an approved identity policy. Membership in one group is not sufficient evidence of the exact order of every event within it.

Inspect a Complete Synthetic Export Slice

All labels and numbers below are invented. The table is a normalized fixture under one recorded export schema, not captured visitor data. Namespace includes the approved source and identity context; only rows explicitly sharing that context can be compared through its batch identifiers.

RowNamespacePageRequest orderEvent indexTimestampLabel
E1A72001000000Guide opened
E2A72011000000Example copied
E3A72101000000Search interaction
E4A8101000000Next page event
E5B72001000000Other observed identity
E6AUnknownUnknownUnknown1000000Unresolved batch fields

E1 precedes E2 within the same declared batch according to event index. Request 20 was sent before request 21 from page 7 under the request-order definition. That fact alone is not a license to assert E2 occurred before E3: a request-send relationship and an event-occurrence relationship are not interchangeable.

Page 8’s assigned sequence follows page 7 under the documented page context. It does not make its request 1 the first network request across the whole group. E5’s equal numbers belong to another namespace. E6 lacks the required fields and remains unresolved.

Execute Only the Relationships Claimed

This local code deliberately implements two separate comparisons. Missing fields and different namespaces do not become guessed order. The fixture does not query a property or reconstruct actual people.

rows = {
 'E1': {'ns':'A','page':7,'request':20,'index':0},
 'E2': {'ns':'A','page':7,'request':20,'index':1},
 'E3': {'ns':'A','page':7,'request':21,'index':0},
 'E4': {'ns':'A','page':8,'request':1,'index':0},
 'E5': {'ns':'B','page':7,'request':20,'index':0},
 'E6': {'ns':'A','page':None,'request':None,'index':None}}
def within_batch_before(a,b):
    keys = ['ns','page','request','index']
    if any(a.get(k) is None or b.get(k) is None for k in keys): return None
    if any(a[k] != b[k] for k in ['ns','page','request']): return None
    return a['index'] < b['index']
def request_sent_before(a,b):
    if any(a.get(k) is None or b.get(k) is None for k in ['ns','page','request']): return None
    if a['ns'] != b['ns'] or a['page'] != b['page']: return None
    return a['request'] < b['request']
assert within_batch_before(rows['E1'],rows['E2']) is True
assert within_batch_before(rows['E2'],rows['E3']) is None
assert request_sent_before(rows['E2'],rows['E3']) is True
assert request_sent_before(rows['E3'],rows['E4']) is None
assert within_batch_before(rows['E1'],rows['E5']) is None
assert within_batch_before(rows['E1'],rows['E6']) is None

The functions return unknown when the comparison is outside their contract. They do not say the reverse happened. A production adapter also needs actual source grouping, field types and duplicate-index handling; equal or malformed batch positions should not be accepted as an established strict order.

Do Not Promote a Sort Key Into a Causal Story

A lexicographic sort by namespace, page, request and index can produce a readable table. Label it a deterministic presentation order unless each claimed temporal relationship has appropriate support. An export’s stable row order is not automatically the order a person experienced the product.

This matters when attributing a resource action to an earlier guide. If the order remains unresolved, the path analysis should retain that ambiguity or use a coarser supported summary. Choosing the most convenient order can manufacture a content-assisted journey from simultaneous-looking records.

The action reconstruction review applies the same evidence discipline to a different logging problem. Here the batch schema provides specific relationships, not authorization history or a complete causal trace.

Record Schema Coverage and Missingness

Confirm which fields exist in the actual dates and streams being queried. A current schema reference does not prove every historical partition has populated values. Preserve coverage by period and source before publishing a continuous path series.

Do not infer new event order from an unavailable old field. If a schema or collection change improves future reconstruction, record the transition in the measurement release ledger. Keep earlier uncertainty visible rather than backfilling it with a fabricated sequence.

Use only identifiers already permitted for the analysis. This technique does not justify collecting extra identity data to connect anonymous rows. Namespace protection prevents false joins; it does not certify that an alias is one human.

Approve a Bounded Reconstruction

The final packet should contain the source slice, schema version or observation, namespace policy, exact supported relationships, unresolved pairs and any presentation-only ordering. Have another reviewer reproduce E1-before-E2 and challenge the unsupported cross-batch inference.

Approve when the report can say what its ordering evidence establishes without inventing precision. The useful result is an honest content-path analysis under observed coverage, not a complete replay of every reader action or proof that one guide caused the next step.

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