Data Source needs to be set to URL Parameter and "wt_mc" in Mapp Q3.
Make sure you allow sessions to start with an action request in the account configuration if you want to track the request as an event and not as a page! Please contact your Mapp account manager for further questions.
The media code needs to be called in the activity that is specified in the App's Manifest XML as follows:
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
Uri intent = getIntent().getData();
if(intent !=null) {
String mc = intent.getQueryParameter("wt_mc");
Map<String, String> params = new LinkedHashMap<>();
params.put(Param.MEDIA_CODE, mc);
Webtrekk.getInstance().trackCustomEvent("Event Name", params);
}
JAVA
Cookie Notice
We use technically neccessary cookies. For details, please have a look at: mapp.com/privacy