SaTracking
PlatformsNEWIntermediate

Design idempotent retries for server-side event delivery

Separate transient from permanent failures, retry with bounded backoff and idempotency keys, and check that duplicate conversions never reach the destination.

Download for AI (.txt)

Measurement topic illustration · SaTracking

Separate transient from permanent failures, retry with bounded backoff and idempotency keys, and check that duplicate conversions never reach the destination. The goal is to make behavior observable, reduce hidden dependencies and ensure that changes can be reviewed before they affect production data.

Define the implementation contract

State the intended behavior, the event or request that initiates it, the data required and the destination that consumes the result. Identify prerequisites such as consent, authentication, route state or environment. Separate platform configuration from application behavior and name the owner of each dependency.

Apply the method

Classify transient and permanent errors; retry transient failures with bounded exponential backoff and jitter where supported; use stable event IDs or idempotency keys; cap attempts; isolate poison messages; monitor exhausted retries and dead-letter or failed delivery paths; reconcile accepted events where possible.

Validate positive and negative paths

A timeout does not prove that the receiver rejected the event. Retrying without idempotency can create duplicate conversions. Test the expected path and at least one condition in which the tag or event must not proceed. Include missing, malformed, duplicated and delayed inputs where relevant. Use a controlled browser session and inspect the actual event context, payload, request and destination response; compare browser and server behavior where both are involved. Record the container or configuration version and remove personal identifiers from shared evidence.

Prepare for production changes

Promote changes through a reviewed release process. Confirm the target environment, permissions, consent behavior and destination configuration. Monitor event volume, rejection, duplication, latency, error patterns and unexpected payload changes after release, compare representative source actions with received events and define a rollback or remediation owner.

Review checklist

  • Is the intended behavior and its prerequisite state explicit?
  • Are event names, parameters and destinations documented?
  • Have both allowed and blocked paths been tested?
  • Can the request and resulting platform behavior be verified?
  • Is there a named owner and a safe release or rollback path?

Official references

EDITORIAL HISTORY

What changed

  1. v1.0
    Created an original bilingual implementation guide with platform documentation and validation criteria.
  2. v1.1
    Merged serverside-tagging-retry-backoff into this guide: added exponential backoff with jitter, poison-message isolation, exhausted-retry monitoring, browser/server comparison and rejection/latency/payload monitoring.
MEASUREMENT SUPPORT

Need a hand with your tracking?

Nicolas Salazar works with teams on analytics, tracking plans, data quality, consent, and implementation.