By 2026, CTV ad spend in the US is set to blow past $30 billion, but a ton of marketers are still flying blind on precise CTV attribution. Huge chunks of their budget are basically unmeasured. You absolutely have to understand how your CTV campaigns are driving mobile app installs and in-app events if you want to prove ROI and scale what’s working. This guide will walk you through setting up your CTV campaigns in AppsFlyer, step-by-step, so you can actually track and analyze performance and make sure every dollar spent on a CTV impression is pulling its weight for app growth.
Key Takeaways
- Set your AppsFlyer view-through window for CTV to a 24-hour default. That’s how you’ll catch conversions from people who see an ad and download hours later.
- When you make links in AppsFlyer’s “Attribution Links” section, pick “CTV Ad” as the media source so your data gets sorted correctly.
- Put the AppsFlyer impression pixel right into your CTV ad server or demand-side platform (DSP). You need it to fire on every view to make view-through attribution work.
- Check your AppsFlyer CTV data against your DSP reports. If the impression and click numbers are off by more than 5%, you’ve got a problem to investigate.
- Build retargeting lists in AppsFlyer’s “Audiences” module using people who saw your CTV ad. Then you can hit them with follow-up campaigns on their phones.
Step 1: Initial AppsFlyer Account Setup and CTV Integration Readiness
You can’t attribute a single CTV-driven install until your AppsFlyer account is configured correctly. This means getting the basic settings right from the start to ensure accurate data flows in for measurement. I’ve seen way too many teams rush this part and then wonder why their data is a complete mess six months down the line.
Adjusting Attribution Windows for CTV
The way people react to a CTV ad is completely different from a mobile banner. Someone sees your ad on their Roku, gets interested, but doesn’t grab their phone to download your app until a few hours later during a commercial break for another show. AppsFlyer’s default attribution windows are often too short to catch that delayed action, so you have to manually extend them to give your CTV campaigns proper credit.
- Go to your AppsFlyer dashboard. Find “Configuration” in the side menu and click “App Settings.”
- Find the “Attribution” section. You’re looking for the “Click-through Lookback Window” and “View-through Lookback Window.”
- For CTV, I always tell people to set the “View-through Lookback Window” to at least “24 Hours.” Some will say 48 hours is better, but 24 is a solid starting point that balances catching those delayed downloads without over-attributing every random install. For the “Click-through Lookback Window,” a “7 Days” window is fine, direct clicks from QR codes on a TV screen happen, but they’re not the main event.
- Hit “Save Settings” at the bottom. Seriously, don’t forget this. It’s a surprisingly common mistake to make all these changes and then just navigate away.
Pro Tip: Keep a close eye on your campaign performance for the first couple of weeks. If you see a weird spike in “organic” installs right after you launch a big CTV push, it’s a huge sign your view-through window is too short. You’re basically giving away credit that your CTV campaign earned, so try extending the window and see if those “organics” get properly attributed.
Verifying SDK Integration for In-App Events
Good CTV attribution also tracks what happens *after* the install, the purchases, subscriptions, or sign-ups that actually make you money. For that to work, your mobile app’s SDK has to be set up to report all those in-app events back to AppsFlyer.
- In the AppsFlyer dashboard, navigate to “Configuration” and then “SDK Integration.”
- Pick your platform (iOS or Android). You should see a list of your in-app events. Check that every event that matters to your business (like
af_purchase,af_subscribe,af_add_to_cart) is there and showing as “Active.” - If you’re missing an event or it’s inactive, you need to talk to your developers. They need to confirm the AppsFlyer SDK is initialized correctly and that the right
logEventcalls are actually in the app’s code. For an iOS app, for example, they’d be looking for something likeAppsFlyerLib.shared().logEvent(AFEventPurchase, withValues: ["af_revenue": revenueAmount, "af_content_id": productId]).
Common Mistake: Don’t just assume the SDK is working. I see this all the time. You have to periodically go into AppsFlyer’s “Events” module and audit your data. Are the numbers and revenue values what you’d expect? If there are big gaps, your ROI calculations for CTV are going to be completely wrong.
Step 2: Generating CTV Attribution Links and Tracking Pixels
Okay, your AppsFlyer settings are dialed in. Now it’s time to generate the unique attribution links and impression tracking pixels that your CTV ad platforms will actually use to pass data back.
Creating Custom Attribution Links for CTV
AppsFlyer needs custom links to know where your traffic is coming from and who gets credit for an install. You have to configure these links specifically for your CTV partners and campaigns so the data doesn’t get jumbled.
- Go to “Attribution Links” in the left menu of the AppsFlyer dashboard.
- Click the “New Link” button.
- Choose “Custom Link” for the link type.
- On the “Link Setup” page, give it a name you’ll recognize later (e.g., “CTV_Campaign_Q3_2026_BrandX”).
- This part is super important: under “Media Source,” find and select “CTV Ad.” If you have a specific integrated partner, you can pick them, but “CTV Ad” is the general-purpose one that tells AppsFlyer how to categorize this traffic.
- Use a clear naming convention when you fill in the “Campaign” and “Ad Set” fields (like
CTV_BrandAwarenessorQ3_Retargeting). This will make filtering and segmenting your reports so much easier later on. - Scroll down to the “Attribution Window” and just double-check that it matches the global settings you configured back in Step 1. You can override them here for a specific campaign, but I’d stick to the global settings unless you have a very good reason not to.
- Click “Generate Link.” AppsFlyer will give you a Click URL and an Impression URL.
Expected Outcome: You now have two key URLs. The Click URL is for things like QR codes on the screen or other direct-response tactics. The Impression URL is the one you’ll use most, it’s the pixel that your CTV ad server needs to fire every time an ad is displayed to make view-through attribution possible. Getting impression tracking right is non-negotiable for understanding basic CTV metrics like reach and frequency, which is something the IAB has been hammering on for years.
Implementing Impression Tracking Pixels in Your DSP/Ad Server
This is the most hands-on part. You have to get your demand-side platform (DSP) or ad server to fire that AppsFlyer impression URL every single time your ad is shown on a TV. The exact menu options will be different for every platform, but the core task is always the same.
- Log into your CTV DSP, The Trade Desk, DV360, Roku’s platform, whatever you’re using.
- Find the campaign or ad group that holds your CTV creatives.
- Look for a section called “Third-Party Tracking” or “Impression Trackers.” It’s usually buried in the settings for the individual creative or ad tag.
- Paste the Impression URL you got from AppsFlyer into the field. Make sure you don’t accidentally add any extra spaces or characters. A lot of DSPs also let you use macros (like
${AUCTION_ID}or${PUB_ID}) to pass back extra info. Check your DSP’s documentation to see what’s available and consider adding them to your URL for more granular analysis. - Save everything. If the DSP has a preview function, use it to confirm the impression pixel is firing as expected.
Pro Tip: Always, always, always run a small test campaign first. Spend a few bucks, let it run for a couple of hours, and then go into your AppsFlyer “Raw Data Reports” to see if impressions from your CTV source are actually showing up. Validating this upfront will save you from a world of pain and wasted budget later.
Step 3: Monitoring and Analyzing CTV Campaign Performance
Getting the links and pixels set up is just the start. The real work, and the real value, is in constantly monitoring the data that flows in, spotting trends, and then actually using what you find to optimize your campaigns. You have to be proactive about digging into the data inside AppsFlyer.
Accessing CTV Performance Reports
AppsFlyer has a few reports you’ll want to live in to understand your CTV campaign’s actual impact.
- In the AppsFlyer dashboard, go to “Dashboards” and then “Overview.” From here, you can filter by your media source (“CTV Ad” or your specific partner) to get a high-level view of installs and in-app events.
- For deeper insights, go to “Reports” and look at “Cohorts” or “Retention.” Filter by your CTV media source and campaign name. This is where you can answer questions like, do users from CTV stick around longer? Do they generate more revenue (LTV)?
- If you pay for the “Protect360” module, use it. Ad fraud is a real problem on CTV, just like everywhere else. Keep an eye out for any weird install patterns or huge floods of impressions or clicks coming from your CTV partners.
Editorial Aside: Look, cost per install (CPI) is a fine starting point, but it’s a vanity metric. It’s completely useless if those cheap installs never lead to a single purchase or subscription. You have to tie your CTV performance back to real business goals like subscription rates or total purchase volume. Driving a ton of cheap installs that don’t convert is just a fast way to burn through your budget with nothing to show for it.
Reconciling Data Discrepancies
Your DSP’s numbers for impressions and clicks will almost never match what AppsFlyer reports. Some level of discrepancy is normal, but if the gap gets too wide, you have to figure out why.
- Pull an impression and click report from your CTV DSP for a specific campaign and time frame.
- Now go to AppsFlyer’s “Reports” section and pull a “Raw Data Report” for both “Impressions” and “Clicks” for the exact same campaign and time frame. Make sure you filter by your CTV media source.
- Compare the totals. A difference of 5-10% is usually fine and can be chalked up to things like network lag or just different ways of counting. But if you’re seeing a 20% gap or more, that’s a serious red flag.
- Start digging into why:
- Pixel Firing Issues: Is it possible your impression pixel isn’t firing 100% of the time?
- Time Zone Differences: Are both platforms reporting in the same time zone? This is a common trip-up.
- Bot Traffic: Is your DSP counting a bunch of bot traffic that AppsFlyer’s fraud protection is correctly filtering out?
- Attribution Overlap: Did a user see your CTV ad but then click a Facebook ad before installing? AppsFlyer might be giving the credit to Facebook, even though your DSP is logging the impression.
Common Mistake: The biggest mistake is just ignoring these discrepancies. You’ll never get a perfect match, but huge, consistent gaps mean something is fundamentally broken, either in your tracking setup or with your ad partner’s reporting. You need to jump on these problems fast to make sure you’re not just throwing money away.
Step 4: Using CTV Data for Optimization and Retargeting
All this data you’re collecting in AppsFlyer is meant to be used. It should directly feed back into your media buying strategy and how you build your audiences. This is the part where you stop just measuring and start taking action.
Optimizing CTV Campaigns Based on Post-Install Metrics
Because AppsFlyer tracks in-app events, you can optimize for what really matters, not just cheap installs. You can finally see which specific CTV creatives or publishers are actually driving users who spend money.
- In AppsFlyer’s “Dashboards”, go to the “Overview” report and filter for your CTV media source. Then start adding dimensions to your view like “Creative Name,” “Ad Set Name,” and “Geo.”
- Look at metrics like “Average Revenue Per User (ARPU)” or “Retention Rate” for each of those dimensions. If one creative has a 15% higher ARPU than all the others, that’s a clear signal to shift more budget towards it.
- Take these findings straight to your media buying team or your DSP account manager. Tell them to adjust bids, tweak targeting, or change the creative rotation based on the performance data you’re seeing in AppsFlyer.
Pro Tip: Be ruthless about cutting underperforming CTV placements and publishers. Cheap impressions are meaningless if the users they bring are worthless. Your AppsFlyer post-install metrics will tell you where the quality is, so focus your spend there instead of just chasing volume.
Creating Retargeting Audiences from CTV Exposure
One of the best things you can do with this setup is use your CTV ad exposure data to build smart retargeting audiences for other channels like Facebook or Google.
- In AppsFlyer, find “Audiences” in the side menu.
- Click “New Audience.”
- Choose “From Events” as the source.
- Now, build your audience rules. For example, you could create a list of all users who had an “Impression” from your “CTV Ad” media source in the last 30 days but have not yet triggered the
af_purchaseevent. - Give the audience a clear name, like “CTV_Exposed_NonPurchasers”.
- Connect it to your ad accounts (e.g., Google Ads, Meta Ads). AppsFlyer will keep this audience automatically synced with those platforms.
Expected Outcome: Now you can run hyper-targeted mobile campaigns aimed only at people who already saw your ad on TV but didn’t take action. This kind of multi-touch campaign almost always gets better conversion rates and lower acquisition costs, which helps prove the full value of what you spent on CTV in the first place.
Getting a handle on CTV attribution in AppsFlyer gives you the confidence to actually invest real money into this channel. When you take the time to set up your attribution windows, create the right tracking links, watch the performance data, and use it to optimize, your CTV spend stops being a fuzzy brand-awareness gamble and becomes a predictable driver for real app growth.
What is the ideal view-through attribution window for CTV campaigns in AppsFlyer?
A 24-hour view-through window is the best practice for CTV in AppsFlyer. It’s long enough to catch people who see an ad on their TV and download the app on their phone a few hours later, but it’s not so long that you start over-attributing installs that weren’t really related.
How do I ensure AppsFlyer correctly identifies my CTV traffic?
When you create your custom attribution links in AppsFlyer, you have to select “CTV Ad” as the media source. That’s the key step that tells AppsFlyer to properly tag and report on this traffic separately from your other channels.
What should I do if my AppsFlyer impression counts don’t match my DSP’s reported impressions for CTV?
Don’t panic if the numbers don’t match perfectly. A 5-10% gap is normal. But if it’s over 10%, you need to investigate. Check for simple things like different time zones first, then look at pixel firing problems or bot traffic that your DSP is counting but AppsFlyer is (correctly) filtering out.
Can I retarget users who saw my CTV ad but didn’t install my app?
Absolutely. You can use AppsFlyer’s “Audiences” feature to build a list of users who had an impression from your CTV campaign but didn’t install or buy anything. Then you can export that audience straight to Google Ads or Meta Ads and run a targeted retargeting campaign just for them.
Why are in-app events important for CTV attribution, not just installs?
Installs are only half the story. Tracking in-app events like purchases or subscriptions tells you the *quality* of the users your CTV campaigns are bringing in. This lets you optimize for actual revenue and business goals, not just for getting the most downloads for the lowest price.