Glossary

Contextual Deep Linking

Deep linking that carries metadata (context) about the user's pre-click journey, enabling personalized in-app experiences based on the source, campaign, or content that brought them.

What is Contextual Deep Linking?

Contextual deep linking combines standard deep linking with metadata that describes the context of the user's journey. Beyond simply routing a user to a specific screen, contextual deep links carry information about where the user came from, what campaign they saw, who referred them, and any other custom data the developer attaches to the link.

For example, a contextual deep link for a referral program might carry the referrer's user ID, the specific product being shared, and the campaign name. When the recipient opens the app — even after a fresh install — the app can use this context to credit the referrer, show the shared product, and display a personalized welcome message.

How it works

Contextual deep linking works by attaching key-value parameters to deep links and preserving them through the entire user journey:

1. Link creation — A deep link is created with custom parameters: https://yourapp.link/invite?referrer=user123&product=456&campaign=summer_promo

2. Click capture — When the user clicks, the deep linking platform records all parameters along with the device fingerprint and timestamp.

3. App open — Whether the app was already installed (standard deep link) or needed to be installed first (deferred deep link), the app's SDK retrieves the full context from the platform.

4. Personalized experience — The app uses the retrieved context to: - Route to the specific content (product 456) - Apply the referral credit (from user123) - Track the campaign source (summer_promo) - Customize the UI ("Welcome! user123 invited you")

The key differentiator from basic deep linking is that contextual deep links carry arbitrary metadata that survives the install process, enabling personalization that goes far beyond simple routing.

Why it matters

Contextual deep linking is the foundation of modern mobile growth strategies:

- Personalized onboarding — First-time users see relevant content instead of a generic welcome screen, dramatically improving activation rates - Referral program tracking — Automatically credit referrers and reward both parties without manual code entry - Campaign attribution — Know exactly which campaign, channel, and creative drove each install and downstream event - Content sharing — When users share content from your app, recipients get deep-linked to that exact content - Cross-platform continuity — Preserve user context when transitioning from web to app, email to app, or social to app

Frequently asked questions

How is contextual deep linking different from regular deep linking?

Regular deep linking routes users to a specific screen in an app. Contextual deep linking does the same routing but also carries custom metadata (referrer ID, campaign name, promo codes, etc.) that the app can use to personalize the experience. Think of it as deep linking + data passthrough.

Does contextual deep linking work for new users who don't have the app?

Yes, when combined with deferred deep linking. The context (all custom parameters) is preserved through the app store install process and delivered to the app on first open. This is what makes it powerful for referral programs and personalized marketing campaigns targeting new users.

Related terms

Learn more

Implement deep linking in minutes

Redirectly provides deferred deep linking and install attribution SDKs for Flutter and React Native. Free to start.