> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://helpdesk.ezmob.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# How to setup conversion tracking with AppsFlyer

If you track app installs and events with AppsFlyer, use an AppsFlyer attribution link as your EZmob campaign's destination URL. EZmob fills in the macros on each click.

## Steps

1. In AppsFlyer, select EZmob from the list of integrated partners.
2. Create an attribution link for your app in this format:
   ```
   https://app.appsflyer.com/<your-app-id>?pid=ezmob_int&af_siteid={source}&af_c_id={campaign}&af_ad_id={banner}&clickid={conversion}&af_sub1=<your-EZmob-advertiser-ID>
   ```
3. Replace `<your-app-id>` with your real app ID. Don't write `{app_id}` there: EZmob treats it as a macro and replaces it with the publisher's app ID.
4. Replace `<your-EZmob-advertiser-ID>` with your advertiser ID. If you don't know it, ask support@ezmob.com.
5. Paste the link into the campaign's **Destination URL** and save.

## Macros in the link

| Macro | Replaced with |
|---|---|
| `{source}` | Traffic source |
| `{campaign}` | Campaign ID |
| `{banner}` | Ad ID |
| `{conversion}` | Click ID, required for conversion tracking |

## Good to know

- Macros are case-sensitive. Unknown macros are rejected when you save the campaign.
- Keep `clickid={conversion}` in the link: without the click ID, conversions can't be matched to your EZmob campaign.
- After a test install, check the **Conversions** column under **Metrics**.

## Screenshots

- *Screenshot: campaign creative step, with the AppsFlyer link in the Destination URL field*

## Related articles

- [How to Track Conversions with EZmob's Postback](https://helpdesk.ezmob.com/en/article/how-to-track-conversions-with-ezmobs-postback-4z7hva/)
- [Tracking Tokens and Parameters Explained](https://helpdesk.ezmob.com/en/article/tracking-tokens-and-parameters-explained-r5m1yu/)
- [Troubleshooting Conversion Tracking Issues](https://helpdesk.ezmob.com/en/article/troubleshooting-conversion-tracking-issues-15rhk9q/)