Callbacks Management
- What should I do if I want to receive installs or events automatically?
- How can I define callback for installs and events?
- Which parameters can be added to the callback URL definition?
- Note: Metrix supports both camelCase and snake_case parameters.
- Is there a possibility of re-receiving not received callbacks if there is a problem in receiving them?
In the Metrix Dashboard, you can access your raw data in a couple of ways and customize your personal usage.
One of these approaches is provided through real-time callbacks.
Real-time callbacks allow you to monitor the data of each systematical event (including install, reinstall, fraud, ...) and customized events (including any desired event that you have defined in the dashboard) in real-time on your server-side.
The marketing unit of a business will need to have all of its users' information seamlessly in one database. For this purpose, Metrix provides you with this data in real time so that you can easily analyze and categorize your users' data and perform the relevant action according to this instant data.
You should go to this path in the Dashboard (as the figure below): Organizations -> Your organization -> Settings of your chosen application -> Callbacks
You can define callback URL with the required parameters for each install, reinstall, uninstall, fraud and custom event.
These parameters are listed in the table below. You can choose any of these parameters and add them in macro form to your url so that Metrix can send them to your server in callback:
parameter | parameter type | parameter description | example | install | reinstall | uninstall | fraud | event | click |
---|---|---|---|---|---|---|---|---|---|
tracker_code | String | tracker id | bdjulq | ✔ | ✔ | ✔ | ✔ | ✖ | ✔ |
network_name | String | ad network name | AdNetwork1 | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ |
campaign_name | String | campaign name | Black Friday | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ |
adgroup_name | String | ad group name | Video Banner | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ |
creative_name | String | creative name | Product Features | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ |
sub_id | String | sub id | 83407c9a-392d-4f6b-b689-eadfe557ff18, abcdefg | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ |
action_name | String | type of event, install or click | fraud | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ |
reinstalled | Boolean | is reinstalled? | true, false | ✔ | ✔ | ✖ | ✖ | ✖ | ✖ |
rejection_reason | String | fraud reason | anonymousIP, tooManyEngagements, clickInjection, sdkSpoofing, distributionOutlier | ✖ | ✖ | ✖ | ✔ | ✖ | ✖ |
event_slug | String | event id | uimgx | ✖ | ✖ | ✖ | ✖ | ✔ | ✖ |
app_name | String | package name which implemented by the sdk | com.example.test | ✔ | ✔ | ✔ | ✔ | ✔ | ✖ |
app_version | String | application version | 1.1.2.Beta | ✔ | ✔ | ✔ | ✔ | ✔ | ✖ |
device_name | String | device model | sm-a505f | ✔ | ✔ | ✔ | ✔ | ✔ | ✖ |
device_brand | String | device brand | xiaomi | ✔ | ✔ | ✔ | ✔ | ✔ | ✖ |
device_manufacturer | String | device manufacturer | xiaomi | ✔ | ✔ | ✔ | ✔ | ✔ | ✖ |
android_id | String | android id | b9da30111528c740 | ✔ | ✔ | ✔ | ✔ | ✔ | ✖ |
gps_adid | String | google play service ad id | 38400000-8cf0-11bd-b23e-10b96e40000d | ✔ | ✔ | ✔ | ✔ | ✔ | ✖ |
ip_address | String | user ip address | 91.251.150.188 | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ |
user_agent | String | user agent | Dalvik/2.1.0 (Linux; U; Android 10; JSN-L22 Build/HONORJSN-L22) | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ |
metrix_user_id | String | user id in Metrix | c0bcf71e-a027-4cfa-974a-e90e040e5c3a | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ |
created_at | Timestamp | creation time in ms | 1403674212 | ✔ | ✔ | ✔ | ✔ | ✔ | ✖ |
clicked_at | Timestamp | click time in ms | 1403568849 | ✔ | ✔ | ✔ | ✔ | ✖ | ✔ |
installed_at | Timestamp | installation time in ms | 1404214634 | ✔ | ✔ | ✔ | ✔ | ✔ | ✖ |
city | String | user city | Tehran | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ |
country | String | user country | IRN | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ |
Also, if you have a custom parameter that is filled by you on click, and you need it to be returned to you during installation or clicking, you can add it as a placeholder in your callback URL.
An example of an installation callback can be as follows:
https://callbacks.myserver.com/path?clickId={clickId}&tracker_name={tracker_name}&ip_address={ip_address}
Also, the parameters provided by you in the sdk will be able to be sent to your server.
Metrix callback system has the ability to resend the lost callback for up to one day at 4-hour intervals if it does not receive a proper response from your server. Therefore, due to the possibility of sending unsuccessful callbacks again, it is possible to receive one callback several times. Thus, to avoid inconsistencies in statistics and additional counting, it is necessary to consider a unifying parameter on your server side.