Analytics Event Release QA avatar

Analytics Event Release QA

Pricing

$100.00 / 1,000 test session pair compareds

Go to Apify Store
Analytics Event Release QA

Analytics Event Release QA

Offline release QA for analytics test recordings: missing observations, duplicate rules, parameter drift and optional event sequence contracts.

Pricing

$100.00 / 1,000 test session pair compareds

Rating

0.0

(0)

Developer

AFK Digital

AFK Digital

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

13 days ago

Last modified

Categories

Features

Limited permissions

Share

Compare recorded baseline and candidate analytics test sessions before a release. Detect events not observed in recordings, duplicate triggers under explicit customer rules, missing required parameters, schema/type drift and optional sequence deviations. No browser, analytics account, advertising account, proxy or third-party API key is required.

Quick start

Run the default input: five paired scenarios cover missing purchase, double trigger, lost product ID, value type change and legitimate repeating heartbeats. Expected runtime is under five minutes. Download findings as JSON or CSV from the default Dataset; read OUTPUT in the key-value store for completion status. A clean pair produces no finding row but still counts as one compared pair.

Recording format

Each record requires string scenario_id, session_id, event_name and an optional parameters object. JSON is an array of records. CSV requires headers scenario_id,session_id,event_name,parameters; the parameters cell is a JSON object, with normal CSV quote escaping. CSV values inside the JSON object retain JSON types; flat CSV parameter inference is deliberately unsupported.

baselineEventsFile and candidateEventsFile accept inline JSON rows. To import JSON/CSV files, set the corresponding EventsFile to [] and pass the file contents through baselineRecording or candidateRecording: {"content":"CSV or JSON text"}. Local paths, URLs and external key-value-store references are unsupported. No extra account permission is needed. Customer API clients can read a local file and serialize its text into this content field.

Explicit pairing and expectations

scenarioMapping is an array of objects: scenario_id, baseline_session_id, candidate_session_id, expectedEvents, ordered. Each recording session may occur in only one pair. Random session IDs across releases require explicit pairs. With an empty mapping, only identical scenario/session keys are paired; unmatched recordings generate unpaired_recording, remain uncharged and mark the report partial. With explicit mappings, only listed pairs are processed; other recordings are outside scope. Output scenario IDs are hashed, output session IDs are pair ordinals. Source row numbers allow local reconciliation without publishing raw session IDs.

expectedEvents is a list (including repeats) that establishes minimum event counts for both recordings. When omitted, the baseline event list establishes minimum counts. Sequence checking is off by default; ordered:true requires the filtered event-name sequence to exactly equal expectedEvents (extra events count as deviations). Type comparisons match same-name event occurrences by ordinal after explicit retry filtering. This is not semantic matching of individual transactions.

eventSchema maps event names to parameter paths and JSON types: string, number, boolean, array, object, null. A schema type alone does not make a field required. requiredParameters maps event names to required parameter path arrays. Paths are relative to parameters unless prefixed with parameters. Use numeric path components for schema checks inside arrays. Differential type checking treats arrays as array types, not individual item contracts.

Ignored fields and repeat rules

ignoredFields accepts dotted paths, parent paths and shell-style wildcards, such as timestamp, session_id, parameters.request_id and parameters.device.*. Ignored parameters do not participate in type, required-field or duplicate key checks. Field values are never emitted even when not ignored.

dedupRules is keyed by event name. Example: {"purchase":{"keyFields":["parameters.transaction_id"],"maxOccurrences":1,"retryField":"parameters.retry","retryValue":true},"heartbeat":{"allowRepeat":true}}

Duplicate detection is opt-in. keyFields define equality within each recording session. More than maxOccurrences (default 1) is a duplicate_trigger. Missing/unspecified duplicate keys produce an informational dedup_rule_incomplete finding, not a duplicate accusation. allowRepeat:true permits repeats. retryField and retryValue explicitly exclude matching retry records before all contract and sequence checks; use these only when excluding retries is appropriate. No implicit time window or heuristic retry inference is used. Distinct transactions need distinct supplied key values. Unconfigured repeats may generate count-change findings but are never labeled duplicate triggers.

Outputs and privacy

Dataset fields: scenario_id, session_id, event_name, finding_type, parameter_path, expected_value, actual_value, severity, evidence_rows; recording_side adds baseline/candidate context. Values contain types, counts, schema presence and event-name sequences, never raw parameter payloads. Evidence contains source side and 1-based data record row numbers (CSV header excluded). Do not put personal information in event names, parameter keys or scenario labels. Uploaded input remains in your Apify run/storage according to your own retention settings.

High severity means a contract, sequence or rule violation; warning means a recording count changed; info means insufficient evidence or an incomplete comparison. Baseline violations are reported as well as candidate violations.

Limits and partial results

Hard caps: 5 MiB per recording, 20000 events per recording side, 1000 events per session, 100 completed pairs/run, 10000 findings/pair, 8 MiB aggregate completed-pair findings, 180 seconds comparison time and 300 seconds Actor timeout. Lower limits may be configured. Malformed or oversized input files fail validation before comparison. A session over its event cap is skipped intact and uncharged. A pair reaching time/finding/report-size limits discards its unfinished findings, emits pair_incomplete and is uncharged. Completed earlier pairs are retained. OUTPUT.partial always needs checking; deliveryComplete must be true to treat the final summary as delivered. Infrastructure hard termination can leave an incomplete report: consult run status.

Pricing

Pay-per-event charge: USD 0.10 per completed test session pair (USD 100 per 1000 pairs). One pair means one baseline and one candidate recording for a scenario, with up to 1000 events on each side. Findings are not separately charged; clean pairs count. Unpaired, skipped and unfinished pairs are not charged. The implementation checks the remaining event budget and uses one idempotent session-pair-compared event per completed pair. There is no start or Dataset-item fee. Platform usage is included in this event price.

Interpretation

An event absent from a recording does not prove the application never generated it: recorder coverage, filtering, consent and export gaps can all matter. This tool validates supplied test evidence. It does not guarantee live analytics accuracy, dashboard totals, advertising conversion attribution, delivery to vendors or legal compliance.

Development

Version 1.0.0. Run python3 -m unittest discover -s tests -v, then docker build -t newapi92:1.0.0 . . Demo input: examples/demo.json. AFK Digital.