Overview
This article covers the tracking URL and postback URL templates for integrating Appmetrica/Yandex with Swaarm.
The templates below are suggested starting points — you can add or remove parameters and macros based on your requirements.
ℹ️
For the full list of Swaarm macros and postback parameters → Advertiser Tracking Details
For Appmetrica/Yandex tracking link parameters → Tracking Specification
For Appmetrica/Yandex postback macros → Postback Specification
Tracking URL
The Appmetrica tracking link contains the minimum information needed to record the click and redirect the user to the app download. Additional parameters go after the ? character to capture extra data and return it via the postback.
ℹ️ The templates below are suggested starting points - you're free to add or remove parameters and macros based on your company's specific needs.
Base structure
https://redirect.appmetrica.yandex.com/serve/[tracking ID]
ℹ️ redirect.appmetrica.yandex.com is the most commonly used domain. Other possible variations: appmetrika.yandex.com, appmetrica.yandex.ru, appmetrika.yandex.ru
Complete tracking link with Swaarm macros
https://redirect.appmetrica.yandex.com/serve/600573419754384676?click_id={id}&google_aid={device.ids.gaid}&ios_ifa={device.ids.idfa}&device_ip={user.ip}&device_ua={user.encoded_ua}&click_timestamp={time.timestamp}&afpub_id={publisher.id}_{publisher.subId}&site_id={publisher.site}&creative_id={publisher.creative}Tracking link parameter mapping
Appmetrica Parameter | Swaarm Macro | Description |
|
| Unique click ID (mandatory) |
|
| Google AID |
|
| SHA1 hash of Google AID |
|
| iOS IFA |
|
| SHA1 hash of IFA |
|
| URL-encoded device IP |
|
| URL-encoded device User-Agent |
|
| UTC click timestamp (seconds) |
|
| Affiliated publisher (sub-partner) ID |
|
| Advertising placement ID |
|
| Banner/creative ID |
Postback URL
Global postback with Appmetrica macros
⚠️ Replace {yournetwork} with your own Swaarm postback domain.
https://track.{yournetwork}.swaarm-clients.com/postback?click_id={click_id}&event_id={conversion_event_name}&gaid={google_aid}&idfa={ios_ifa}&sale_amount={price}Postback parameter mapping
Swaarm Parameter | Description | Appmetrica Macro | Description |
| Swaarm click ID for the attributed conversion |
| Unique click ID |
| Attribution method |
|
|
| Postback ID passed by the advertiser |
| ID of this event/install occurrence |
| User device User-Agent |
| User agent of the click |
| Click timestamp recorded by the SDK |
| UTC click time, RFC3339 format |
| Conversion timestamp recorded by the SDK |
| Conversion time, UNIX seconds |
| Event ID attributed in the advertiser's SDK |
| Event name |
| JSON object with custom event data |
| Nested event attributes (JSON) |
| First app open time recorded by the SDK |
| UTC install time, RFC3339 format |
| App download completion timestamp |
| Install time, UNIX seconds |
| Google AID of the device |
| Device's Google AID as received |
| IDFA of the iOS device |
| Device's IFA as received |
| Device manufacturer |
| e.g. Apple, Samsung |
| Device model |
| e.g. Galaxy S6 |
| User device language |
| Language on the device |
| Operating system |
|
|
| OS version |
| OS version on the device |
| Internet service provider |
| Mobile operator name |
| App version |
| Version as specified by the developer |
| App name |
| Package name (Android) or Bundle ID (iOS) |
| SDK version used by the advertiser |
| AppMetrica SDK version integrated |
| App ID |
| App ID on Google Play or App Store |
| Revenue per conversion |
| Purchase/product cost |
| Currency of the revenue |
| Purchase currency |
Event Setup
Events are tracked based on Appmetrica's event name. Set the Adv. EventType ID on the corresponding Swaarm event to match the Appmetrica event name exactly.

