--- title: "Campaign Tracking via Deep Links" slug: "mapp-intelligence-android-sdk-v5-campaign-tracking-deep-links" description: "Track campaigns via deep links in Mapp Intelligence Android SDK v5 and connect inbound app opens to campaign measurement." updated: 2026-04-24T10:48:46Z published: 2026-04-24T10:48:46Z canonical: "docs.mapp.com/mapp-intelligence-android-sdk-v5-campaign-tracking-deep-links" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.mapp.com/llms.txt > Use this file to discover all available pages before exploring further. # Campaign Tracking via Deep Links Campaign tracking through deep links allows you to track users who arrive at your app via a campaign-specific URL. This feature is especially useful for monitoring engagement with campaigns in already installed mobile applications. ## Preconditions 1. **Deep Link Setup**: Ensure deep link functionality is configured according to the [Android developer documentation](https://developer.android.com/training/app-links/deep-linking). 2. **Campaign Parameter Configuration**: In Mapp Q3, set the data source to URL Parameter and use “wt_mc” for tracking campaign media codes. 3. **Session Start Configuration**: If tracking the request as an event (rather than a page view), make sure your account configuration allows sessions to start with an action request. Contact your Mapp account manager for details. ## Implementation To track the media code (campaign ID) from a deep link, ensure the following code is implemented in the activity specified in your app’s manifest: **Kotlin** ```kotlin val intent = intent        val data = intent.data          val mc = data?.getQueryParameter("wt_mc")                  val trackingParams = TrackingParams()        trackingParams.putAll(            mapOf(                Param.MEDIA_CODE to mc!!            )        ) Webtrekk.getInstance().trackCustomEvent("Event Name", trackingParams) ``` **Java** ```java Uri intent = getIntent().getData(); if(intent !=null) {    String mc = intent.getQueryParameter("wt_mc");      Map params = new LinkedHashMap<>();    params.put(Param.MEDIA_CODE, mc);      Webtrekk.getInstance().trackCustomEvent("Event Name", params); } ```