Android: Set parameters based on the clicked URL domain

At a glance: Set attribution parameters based on click URL

Resumen General

Organic search attribution can be set from AppsFlyer without updating the SDK. Learn more.

Utiliza el método appendParametersToDeepLinkingURL method to dynamically set the media source and other parameters based on the clicked URL domain name.

Requisitos previos

  • Android SDK 6.0.1+.
  • Llamar a este método antes de llamar a start.

Uso

Input parameters

TipoNombreDescripción
Stringcontains Un nombre de dominio para identificar URL
Map<String, String>parametersParámetros para agregar a la URL del enlace profundo después de pasar la validación

Proporciona los siguientes parámetros en el parameters Map:

  • pid
  • is_retargeting=true

Usage example

HashMap<String, String> urlParameters = new HashMap<>();
parameters.put("pid", "exampleDomain"); // Required
parameters.put("is_retargeting", "true"); // Required
AppsFlyerLib.getInstance().appendParametersToDeepLinkingURL("example.com", parameters);
AppsFlyerLib.getInstance().appendParametersToDeepLinkingURL("example.com",
mapOf("pid" to "exampleDomain", "is_retargeting" to "true")) // Required

En el ejemplo anterior, la URL de atribución enviada a los servidores de AppsFlyer es:

example.com?pid=exampleDomain&is_retargeting=true