MDH GROUP · BLOG

Mobile Deeplinks and Deferred Deeplinks with Affilentra: Reliably Attribute App Installs

Mobile deeplinks are the backbone of every app affiliate campaign: they determine whether a click results in reliable attribution, a personalized in‑app experience and ultimately a payable conversion. Deferred deeplinks ensure original tracking parameters persist on first open.

← All posts

Mobile Deeplinks and Deferred Deeplinks with Affilentra: Reliably Attribute App Installs

Introduction — Why Deeplinks Are Crucial for Affiliate App Campaigns

Mobile deeplinks are the backbone of every app‑affiliate campaign: they determine whether a click results in reliable attribution, a personalized in‑app experience and ultimately a payable conversion. The challenge is particularly large for app installs: users click in a browser or social apps, land in the store, install the app and only open it later. Deferred deeplinks ensure that the original tracking parameters are preserved on first launch and the conversion is correctly attributed to a partner.

How Affilentra Implements Deeplinks and Deferred Attribution — Overview

Affilentra provides a role‑based, self‑hosted platform that brings together deeplink generation, tracking, conversion validation and commission accounting. For merchants and network operators this means: full control over products, terms and creatives; for partners: traceable tracking links and payout history. Below I describe a practical implementation path including click‑to‑app redirects, parameter preservation, optional SDK fallbacks and order reconciliation after app install.

Core Components

  • Deeplink Generator: Generates personalized links with tracking parameters and a unique click_id.
  • Redirect Service: Responsible for click‑to‑app redirect, store fallback and setting tracking.
  • Optional App SDK: Receives click_id / payload on first launch and sends these to the server.
  • Attribution Engine & Reconciliation: Links app install and later orders to the original click and triggers commission calculation.

1. Deeplink Generation: Contents and Security Considerations

Deeplinks must carry all relevant information without introducing manipulation risks. Recommended minimal set of parameters:

  • aff_id (partner/publisher ID)
  • campaign (campaign identifier)
  • click_id (unique click identifier)
  • payload (optional target parameters for in‑app routing, Base64‑encoded)
  • sig (HMAC signature for integrity verification)

Procedure: The deeplink generator in Affilentra produces links like https://example.com/r?aff_id=...&click_id=... and appends a server‑side computed HMAC signature. The signature prevents subsequent manipulation of the parameters.

2. Click‑to‑App Redirects: Universal Links, Intent & Store Fallback

Correct redirect logic increases the chance of conversion and preserves tracking parameters. The implementation consists of three stages:

  • Universal Links / App Links: When possible, users land directly in the app. The redirect service issues a 302 to the app schema/universal link when it detects the appropriate device headers.
  • Intent URL (Android): For Android browsers the redirect returns an intent URL that opens the app or forwards to the Play Store.
  • Store Fallback: If opening the app fails, the user is sent to the store. The click_id is kept stored on the server side and is used for deferred matching.

Important: The redirect endpoint writes the click_id, user agent and timestamp to a short-lived datastore (e.g., Redis) when clicked. This mapping table is the basis for deferred attribution.

3. Parameter Preservation: From Click to First Open

There are two proven approaches to parameter preservation:

  • Client-side via SDK: The Affilentra SDK receives the deferred payload at app start (e.g., via an install-referrer or a server-side pull mechanism) and transmits click_id and payload to the Affilentra server.
  • Server-side via Postback / ID Matching: The redirect service stores click_id together with device identifiers (where privacy-compliant) and provides a matching interface. On the first app start the app calls an API endpoint, submits device identifiers and receives the associated parameters.

Recommendation: Combine both methods. Use the SDK for reliable first-open capture; use server matching as a fallback for browsers or restrictive environments.

4. SDK Fallbacks: Use Cases and Integration

Affilentra provides an optional, lightweight SDK that performs the following tasks:

  • Capture of install-referrer (Android) or universal link callbacks (iOS).
  • Transmission of click_id and payload to the Affilentra server.
  • Forwarding of the deferred deeplink payload into the app internals for deep routing.

Integration note: The SDK is deliberately kept minimal. After initial integration the app should check the received parameters on first start, initialize the session, and only then trigger in-app promotions or onboarding flows with partner attribution.

5. Order Reconciliation: From Install to Revenue-Relevant Conversion

The goal of reconciliation is to convert the secured attribution into a commissionable conversion. Process:

  • On the first app start, click_id is reported to Affilentra. The system marks the click_id as belonging to the installation and links it to the device session.
  • If an in‑app order occurs later, the app or the merchant backend sends the order data including client_click_id to Affilentra.
  • Affilentra checks the match (click_id present, time window, possible cancellation rules) and validates the order (e.g., payment status). If everything is in order, the commission for the aff_id is marked for payout.

A clear cancellation and validation logic is essential: orders within the withdrawal period or with failed payments must only be included in commission lists after confirmed completion.

Practical examples: typical implementation cases

Case A — social campaign with high direct traffic

Deliver deep link via short URL to creators. Redirect service sets click_id and attempts a Universal Link. SDK in the app bundle captures click_id and payload on first open, routing users into a special onboarding. The order is matched later and the commission is triggered.

Case B — display ads with high store traffic

Display clicks the redirect service, click_id is stored. The user lands in the store and installs later. Server‑side matching based on Install Referrer (Android) or SDK pull (iOS) provides attribution; order reconciliation completes the conversion.

Concrete benefits for merchants, network operators and partners

  • Merchants: Full control over tracking, terms and billing on a self‑hosted platform; no revenue share with third parties.
  • Network operators: Unified view of clicks, installs and revenue; automated reconciliation reduces manual checks.
  • Partners/publishers: Transparent tracking links, traceable payout history and direct feedback via deep link payloads for better conversion optimization.

Implementation checklist — concise and action‑oriented

  • Create deep link generator: aff_id, click_id, payload, sig.
  • Set up redirect service: Universal Links, Intent, store fallback.
  • Persist click mapping (short TTL, secure storage).
  • Integrate SDK as the primary first‑open mechanism; use server API as a fallback.
  • Define reconciliation rules (time window, cancellation/refund handling).
  • Configure commission logic in Affilentra (PRO / NETWORK Edition as a perpetual license depending on need).

Conclusion and next step

Deeplinks and deferred deeplinks are not a black box: with a clear architecture consisting of a deeplink generator, smart redirects, parameter-secure storage, an optional SDK and a clean reconciliation pipeline, app installs can be reliably attributed and converted into commission payments. Affilentra bundles these components into a self-hosted platform that gives merchants control and partners traceability.

Act now: If you want to implement tracking, deferred attribution and billing for your app campaigns cleanly from a single source, choose your entry.

Choose entry

Next step

Try Affilentra yourself

A unified platform that transparently brings together product provisioning, tracking, conversion validation, commission calculation and payout along clearly separated roles; option for self-hosted installation with a perpetual license without revenue sharing; merchants retain control over products, terms and creatives; partners receive personal tracking links and a traceable payout history.

Choose entry