myTracker macros

Device info

Macros Description Example
{mt_idfa} Device IDFA (only iOS) 82706CAC-3B4C-4C76-A9CB-B23F80D87692
{mt_waid} Device WAID (only Windows) 82706CAC-3B4C-4C76-A9CB-B23F80D87692
{mt_gaid} Device advertising id or GAID (only Android) 82706CAC-3B4C-4C76-A9CB-B23F80D87692
{mt_idfa_or_gaid} IDFA, or advertising_id (GAID): depends on the platform (Android/iOS) 82706CAC-3B4C-4C76-A9CB-B23F80D87692
{mt_android_id} Device android_id (only Android) 96c504a0a4f0bb19
{mt_idfv} ios_vendor_id or «app + device» pair (only iOS) 82706CAC-3B4C-4C76-A9CB-B23F80D87692
{mt_mna_id} Device mna (only Windows) 82706CAC-3B4C-4C76-A9CB-B23F80D87692
{mt_wna_id} Device wna (only Windows) 82706CAC-3B4C-4C76-A9CB-B23F80D87692
{mt_device_manufacturer} Device manufacturer Apple
{mt_device_model} Device model iPhone 6
{mt_mobile_operator} Device mobile operator megafon
{mt_mobile_operator_sim} Device SIM mobile operator tele2
{mt_os} OS Android, iOS или Windows android | ios | windows
{mt_os_lang} Two-letter OS lang ru
{mt_os_version} OS version 1.0.2-example

Hashed device IDs

Macros Description Example
{mt_sha1_idfa_lower} SHA1 of lowercased IDFA (only iOS) f43d5ab20a7a56224fe43ef3219abe8b97c8bcca
{mt_sha1_idfa_upper} SHA1 of uppercased IDFA (only iOS) 41175be1cf9d542fb47c1544d1a5a101f62b151b
{mt_sha1_waid_lower} SHA1 of lowercased WAID (only Windows) f43d5ab20a7a56224fe43ef3219abe8b97c8bcca
{mt_sha1_waid_upper} SHA1 of uppercased WAID(only Windows) 41175be1cf9d542fb47c1544d1a5a101f62b151b
{mt_sha1_gaid_lower} SHA1 of lowercased GAID (only Android) f43d5ab20a7a56224fe43ef3219abe8b97c8bcca
{mt_sha1_gaid_upper} SHA1 of uppercased GAID (only Android) 41175be1cf9d542fb47c1544d1a5a101f62b151b
{mt_idfa_upper_or_gaid_lower} Uppercased IDFA, or lowercased GAID, depends on the platform (Android/iOS) 41175be1cf9d542fb47c1544d1a5a101f62b151b
{mt_sha1_idfa_upper_or_gaid_lower} SHA1 of uppercased IDFA, or SHA1 of lowercased GAID, depends on the platform (Android/iOS) 41175be1cf9d542fb47c1544d1a5a101f62b151b
{mt_sha1_android_id_lower} SHA1 of lowercased android_id (only Android) f43d5ab20a7a56224fe43ef3219abe8b97c8bcca
{mt_sha1_android_id_upper} SHA1 of uppercased android_id (only Android) 41175be1cf9d542fb47c1544d1a5a101f62b151b
{mt_sha1_idfv_lower} SHA1 of lowercased ios_vendor_id (only iOS) f43d5ab20a7a56224fe43ef3219abe8b97c8bcca
{mt_sha1_idfv_upper} SHA1 of uppercased ios_vendor_id (only iOS) 41175be1cf9d542fb47c1544d1a5a101f62b151b
{mt_sha1_mna_id_lower} SHA1 of lowercased mna (only Windows) f43d5ab20a7a56224fe43ef3219abe8b97c8bcca
{mt_sha1_mna_id_upper} SHA1 of uppercased mna (only Windows) 41175be1cf9d542fb47c1544d1a5a101f62b151b
{mt_sha1_wna_id_lower} SHA1 of lowercased wna (only Windows) f43d5ab20a7a56224fe43ef3219abe8b97c8bcca
{mt_sha1_wna_id_upper} SHA1 of uppercased wna (only Windows) 41175be1cf9d542fb47c1544d1a5a101f62b151b

App info

Macros Description Example
{mt_app_id} Unique app ID at myTracker 123456
{mt_app_title} Title app at myTracker Mail, iOS
{mt_app_key} App SDK key at myTracker (key, used in SDK) 03584768807587406771
{mt_app_version} App version 1.0.2-example
{mt_tracker_sdk_version} Tracker SDK version 1.0.2-example
{mt_bundle_id} bundle_id of the app Android: com.my.mail
iOS: com.my.mail
Windows: —
{mt_external_id} External app ID: for Android – same as bundle_id; for iOS – numeric app ID on the AppStore Android: com.my.mail
iOS: 722120997
Windows: 9nblggh1zjgz

User info

Macros Description Example
{mt_profile_id} Unique install ID 123456
{mt_install_ts} Unix-timestamp of the install 1505486690
{mt_install_ip} IPv4-address in string form, from where the install happenned 176.59.200.252
{mt_install_country_code} Two-letter country code under ISO 3166-1 RU
{mt_campaign_id} id of ad campaign at myTracker 123456
{mt_tracking_link_id} id of tracking link at myTracker 123456
{mt_tracking_link_title} Title of tracking link at myTracker Mail, iOS, Google
{mt_click_id} Id of the attribution click mt-phjpd1-1583488679-3026497808
{mt_click_ts} Unix-timestamp of the attribution click 1505486690
{mt_s2s} Sign of tracking link activation from a partner's server, not from the user's device. This link does not lead to the target URL, there is no redirect. Instead, the tracker records a click and return status 204 1 (read-only)
{mt_device_ua} User-Agent. Required when using {mt_s2s} in a click URL. If myTracker does not receive {mt_device_ua}, the macro will be assigned an empty value Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:35.0) Gecko/20100101 Firefox/35.0
{mt_device_ip} User IP address. Required when using {mt_s2s} in a click URL. If myTracker does not receive {mt_device_ip}, the macro will be assigned an empty value 172.16.255.2
{mt_ts} Unix timestamp of the click/impression. Required when using {mt_s2s} in a click URL. If myTracker does not receive {mt_ts}, the macro will be assigned a current server timestamp 1592838075
{mt_no_redirect} Sign of tracking link activation by a partner, without myTracker redirect. This link does not lead to the target URL. Instead, the tracker records a click and return status 204 1 (read-only)
{mt_sub1} Additional details (optional) Any string
{mt_sub2} Additional details (optional) Any string
{mt_sub3} Additional details (optional) Any string
{mt_sub4} Additional details (optional) Any string
{mt_sub5} Additional details (optional) Any string
{mt_subNetwork} Additional details on networks (optional) Any string
{mt_subCampaign} Additional details on campaigns (optional) Any string
{mt_subAdSet} Additional details on ad sets (optional) Any string
{mt_subCreative} Additional details on creatives (optional) Any string
{mt_network} Additional network breakdowns (optional). Any string
{mt_campaign} Additional campaign breakdowns (optional). Any string
{mt_adset} Additional ad link breakdowns (optional). Any string
{mt_creative} Additional banner breakdowns (optional). Any string

Event info

Macros Description Example
{mt_event_name} Event name LevelComplete
{mt_event_ts} Unix-timestamp of the event 1505486690
{mt_event_ts_utc} Datetime of the event in UTC with format [YYYY]-[MM]-[DD]T[hh]:[mm]:[ss]Z 2017-09-15T14:44:50Z
{mt_event_ip} IPv4-address of the event in string form 176.59.200.252
{mt_event_country_code} Two-letter country code of the event RU
{mt_event_partner_attribution} The event was attributed by a postback partner 1
{mt_event_user_id} User identifier sent via SDK 00u00s00e00r
{mt_event_connection_type} Connection type at the time of event transmission (Unknown, Mobile, WiFi) WiFi
{mt_event_custom_params_json} Custom event params in JSON format {"param":"value"}

Payment info

Macros Description Example
{mt_transaction_id} Payment transaction id GPA.3473-5367-4352-12345 (random string)
{mt_currency_code} Three-letter currency code under ISO 4217 standard RUB
{mt_payment_sum_rub} Payment sum converted to Russian Rubles at the payment date exchange rate 5.9999
{mt_payment_sum_src} Payment sum in original currency 5.9999
{mt_payment_sum_usd} Payment sum converted to USD at the payment date exchange rate 5.9999
{mt_payment_sum_eur} Payment sum converted to EUR at the payment date exchange rate 5.9999
{mt_payment_sum_app} Payment sum converted to app currency at the payment date exchange rate 5.9999

Postback info

Macros Description Example
{mt_now_ts} Unix-timestamp of the moment when postback is sent 1505486690

Traffic info

Macros Description Example
{mt_traffic_source} Traffic source Google
{mt_traffic_type} Traffic type Organic
{mt_full_click_url} Full url click or deeplink with all params https%3A%2F%2Ftrk.mail.ru%2Fc%2F111111%3Fparam1%3Dvalue1

Attribution info

Macros Description Example
{mt_attribution_by_partner} Attributed by a postback partner 1
{mt_attribution_by_post_click} Attributed by a post click 1
{mt_attribution_by_post_view} Attributed by a post view 1
{mt_attribution_event_type} Attributed by event type click
{mt_attribution_detect_type} Attributed by match type fingerprint
{mt_attribution_ts} Unix-timestamp of attribution event 1505486690
{mt_attribution_ip} IPv4-address in string form 76.59.200.252
{mt_attribution_country_code} Two-letter country code under ISO 3166-1 RU
{mt_attribution_android_referrer} Attribution android referrer some_campaign
{mt_attribution_device_ua} User-Agent in attribution link Mozilla/5.0 (Macintosh)