What changes in 2026
AppsFlyer is replacing People-Based Attribution (PBA) with Web Performance Measurement. The docs give no shutdown date for PBA. The Web SDK stays: the migration guide says the new product runs on the same SDK with no code changes to the site. Your website becomes its own app in AppsFlyer, its attribution settings live on that app instead of a Brand Bundle, and a product line connects it to your mobile apps.
The new product adds hourly reports, configurable attribution windows, a custom user acquisition event, web cost and postbacks to ad networks. These are the timings and limits to plan around:
The setup at a glance
What travels on each hop
Site with the Web SDK
pba plugin, loaded once per page
- Visit with full URL and referrer
- Custom events
- Customer user ID
AppsFlyer web app
website-<domain>
Attribution settings and source resolution
In a product line with the iOS and Android apps
Partner postbacks
Google Ads, Meta, TikTok
Leave after attribution, 1 h 40 min to 2 h 40 min on average
- Custom events only, no visits
Without the same customer user ID from the site and the apps, the product line shows nothing cross-platform.
Raw web data comes only through Data Locker (End User Events report), the migration guide says, and you may need to buy it. The Google Ads and Meta web guides also mention the Raw data exports page and API responses. Check your account before you plan a pipeline.
This guide covers the website itself, not carrying a web click into the app with OneLink and Smart Script. Still choosing a mobile measurement partner? Start with our AppsFlyer, Adjust and Firebase comparison. Where AppsFlyer's documentation is silent, we say what we saw in our own tests of the SDK in November 2026.
Create the website as an app
Five steps in the AppsFlyer dashboard:

My Apps: add an app and choose Website

Set the reporting time zone and currency

Copy the Web SDK ID from SDK authentication

Decide the three day-one settings

Create a product line and add the apps
AppsFlyer gives the app the ID website-<domain>, which reports and the server-to-server API use. Set the time zone at creation: the settings page marks it as only partly editable later. The Web SDK ID sits in App settings, under SDK authentication. Read it from the screen.
On new web apps we created in November 2026, with no PBA history, it showed the same website-<domain> string. The migration notes describe it as a separate value, the old Web Dev Key. If you migrate from PBA, you pick your existing dev key there so the site code keeps working. Each PBA dev key can go to only one new web app.
| Setting | Default | What to decide |
|---|---|---|
| User acquisition event | First visit | A registration or a first purchase says more about a real customer. Switch once that event is arriving |
| Lookback window (user acquisition) | 30 days | Match your sales cycle, anywhere from 1 hour to 90 days |
| Excluded domains | Primary domain only | The primary domain also excludes all its subdomains. Add the payment and login domains you use |
If you enter a parent domain as the primary domain, visitors from any sister site on it count as internal, not as referrals.
For cross-platform reports, create a product line, turn on "Start measuring and analyzing cross-platform" and add the web app next to the iOS and Android apps. Without that switch, cross-platform attribution does not run. The Brand Bundle is the legacy path, so do not create a new one.
A product line connects web and app users only through the customer user ID (CUID), so it shows nothing cross-platform until the site and the apps send the same ID. Use an internal customer ID, never a government ID number or its hash, and agree the choice with your lawyers before you send it.
Check the URLs before the SDK goes live
The SDK reports the page URL and the referrer with every visit. In the new raw report, event_url holds the full URL with its query string and http_referrer holds the referrer.
In our tests of the SDK (November 2026), the requests also carried the part of the URL after #.
Before you switch the SDK on, look at what your URLs carry:
- Query keys that appeared on landing URLs over the last month, from your web analytics.
- Parameters your app adds when it opens the site in a WebView. Apps often append device identifiers and session tokens.
- Pages that put user input in the URL, such as site search. Keep the SDK off them.
- Hosts that share one tag container, such as test, mobile or partner hosts. Decide which may run the SDK.
AppsFlyer documents af_url=true, which drops all query parameters from URLs and referrers, and af_url_mask, which drops the ones you list. We did not test them. The other way is to not load the SDK on such URLs at all. Keep an allowlist of query keys: UTM tags, click IDs, AppsFlyer campaign parameters and the product keys you need. If the page URL or the referrer has any other key, or anything after #, the tag that loads the SDK does not fire. Every key a working link needs must be on the list, or the SDK will not load on that landing.
Set measurementStatus: false in the snippet config, and no visit is recorded until you call window.AF_SDK.PLUGINS.PBA.enableMeasurement() after the user agrees. If the site has a consent banner, do this from the start.
Load one SDK with the pba plugin
The snippet is the same Web SDK as before. Measurement is the pba plugin, and its config key is webAppId. This is AppsFlyer's standard snippet without Smart Banners:
Replace WEB_DEV_KEY with your Web SDK ID in both places. The SDK must load exactly once per page: AppsFlyer's troubleshooting page warns that a second loader, or an event tag that calls the SDK tag again, breaks it. In GTM, use one Custom HTML tag with a higher priority than any event tag. Give it an all-pages trigger plus an exception driven by a variable that checks the URL's query keys.
If a Smart Banner tag is already in your container, change it to load both plugins (st=pba,banners and both keys in AF.id) instead of adding a second loader.
In our tests of the SDK (November 2026), the banners plugin sent the full page URL to AppsFlyer's banner host on every page it loaded on. Limiting pba does not limit the banner, so apply the same URL rules to the banner tag.
In the same tests, the loader file was the same for any st= value. Our reading of the loader is that the pba key in AF.id turns measurement on, so a banner-only page could leave it out. Test that before you rely on it.
Single-page apps and in-app WebViews
In our tests of the SDK (November 2026), on a single-page app it sent a visit (eventType LOAD) only on a full page load. That fits the docs: inside an active session, a new visit is recorded only when the URL carries a source such as a UTM tag, pid or click ID.
So funnel steps such as "form opened" or "application sent" show up only as events sent from the action handler:
- Call
AF('pba', 'event', ...)witheventType: 'EVENT'. The docs say this field must always be the literal stringEVENT. - Put a unique
af_customer_event_idineventValue, one ID per user action. AppsFlyer forwards it, and the ad network uses it to remove duplicates. - If you also send the event through the server-to-server API, fill
customer_dedup_idthere, so AppsFlyer keeps one copy. - Guard the handler against re-renders, so one click never fires two calls.
- The URL checks above protect only the page load. After a route change the SDK is still loaded, so run the same check on the current URL inside the handler and skip the call when the route carries keys that are not on the allowlist. Do the same before
setCustomerUserId.
These two calls are from AppsFlyer's Web SDK guide. The first sets the CUID after login, the second sends an event:
If your mobile app opens the site in a WebView, the mobile SDK already measures those users, and a web visit would only add a second, mostly organic user. Three checks are meant to keep the SDK out of an in-app WebView. Once a URL carries your app's parameters, set a flag in sessionStorage and keep the SDK off for the rest of that tab's session. That third check matters because a later page or a reload in a single-page app has a clean URL and a clean referrer.
May the SDK load on this page?
Three checks in the tag's trigger, in order
1. Page URL
Only allowlisted query keys, nothing after #
- Fails, so stay off
2. Referrer
The same check on the referrer
- Fails, so stay off
3. Session flag
No flag in sessionStorage from an earlier URL with your app's parameters
- Flag found, so stay off
Load
The one SDK tag fires
All three checks need a marker in the URL.
If your app adds nothing to the URL, ask the app team to add a marker parameter.
Do not use a generic WebView user-agent check: Instagram and Facebook open ads in their own in-app browsers, which are WebViews carrying paid traffic.
Test on a device before relying on these checks. Open the web app from the mobile app, move through a few screens and reload: no events request should leave. Open the same page from an Instagram ad: one should. For more, see WebView attribution and product analytics and super-app deep links and WebView attribution.
Get the traffic source right
Web Performance Measurement finds the source of each visit in a fixed order.
The campaign name comes from c, af_campaign or utm_campaign. Ad set and ad come from af_adset, af_ad and their ID keys. A Meta ad whose link carries only fbclid will show up as organic or as a facebook.com referral.
AppsFlyer usually takes the raw utm_source value as the source. To get the network's name, every Meta ad link needs a pid or a UTM pair that the docs map to Facebook Ads: utm_source of Facebook, FB, Meta, metaweb_int or facebook_int, with utm_medium of cpc, ppc, cpm, cpa, paidsocial, paid-social, paid_social or paid. AppsFlyer's Meta guide gives this URL template:
Web cost matching needs its ID fields. With a query-key allowlist, every key in this template has to be on it, af_siteid included. So do the parameters an ad platform adds on its own: Meta appends fbclid to every click, so it must be on the list even though AppsFlyer does not use it. For other platforms, click through a real ad from each one and read the landing URL.
In our tests (November 2026), the GA4 dimension landingPagePlusQueryString did not show standard utm_* keys, so tagged links looked untagged.
For Google Ads, keep the Final URL a direct page address. AppsFlyer warns that an AppsFlyer link there can get the campaign rejected. If you want campaign IDs, add af_c_id={campaignid} through ValueTrack.
Partners and postbacks need events
Web partner integrations are separate from the mobile ones. Each needs IDs plus a sign-in or a token from the ad account.
Google Ads
googleads_int
Needs the Customer ID, a Sign in with Google and a conversion action ID for each mapped event.
In our tests (November 2026) it saved with the Customer ID alone and showed "Missing token". The docs say it clears after Sign in with Google.
Meta
metaweb_int
Needs the Pixel ID and an access token.
In our tests (November 2026) it would not save without the token. Sends no re-engagement postbacks.
TikTok
tiktokweb_int
Needs the Pixel ID and an access token.
In our tests (November 2026) it would not save without the token. Sends no re-engagement postbacks.
None of them gets visits. The postback mapping offers only custom web events, and the docs confirm that visits are not forwarded. Send a page view as an event if a network needs it, and plan conversion events first: with visits only, networks have nothing to optimize on.
If the site also fires the same conversion through the Meta or TikTok pixel, send the same value as af_customer_event_id to AppsFlyer and as the event ID in the pixel. AppsFlyer passes it on in the postback, and the network keeps one copy.
Cost is separate from postbacks. It requires ROI360 and uses the regular network integrations, not the web postback ones: googleadwords_int, facebook_int and tiktokglobal_int. Cost appears only for campaigns with at least one attributed conversion, and the landing URL needs af_c_id.
Check that it works
Open DevTools, filter the Network tab by appsflyer and reload.
0 of 5 done
The docs name the events host wa.appsflyer.com. In our tests (November 2026) it was wa.appsflyersdk.com, as in the loader code. The docs spell the user cookie afUserid.
AppsFlyer's Web SDK Test page (Settings, SDK Integration Tests) streams page loads, events and CUID calls live. We have not run it. The loader code reads a query key af_websdk_test_session, so if that key is not on your allowlist, the test tab may show nothing.
Sources
AppsFlyer documentation checked on 2 December 2026. Observations from our own tests of the SDK are dated in the text.
- Migrate from PBA to Web Performance Measurement
- Web Performance Measurement overview and onboarding checklist
- Configure Web Performance Measurement settings
- Product Line for cross-platform attribution
- Integrate AppsFlyer Web SDK, troubleshooting the Web SDK and Web SDK Test page
- About traffic source resolution
- Web integrations: postbacks and cost
- Web campaigns for website apps in Meta Ads, TikTok and Google Ads
FAQ
Do I have to change the snippet on my site when I move off PBA?
No, according to AppsFlyer's migration guide. You create a new web app and select your existing PBA dev key as its Web SDK ID, so the current pba snippet keeps working. You still have to set the attribution settings on the new app and move any raw data or S2S integration to the new reports and endpoints.
Can I add the website to my existing Brand Bundle?
The Brand Bundle belongs to PBA, the product AppsFlyer is replacing. For cross-platform reports, create a product line, turn on its cross-platform switch and add the web app next to your iOS and Android apps. It connects users only through the same customer user ID sent from the site and the apps.
Why do my Meta campaigns show up as organic or as facebook.com?
Web Performance Measurement does not use fbclid, because Meta adds it to paid and organic clicks alike. Add a pid, or a utm_source and utm_medium pair that the docs map to Facebook Ads, to the ad's destination URL. Check the tags in Ads Manager. In our tests (November 2026) the GA4 landing page with query string dimension did not show standard UTM keys.
Does the Web SDK count page views in a single-page app?
In our tests it recorded a visit only on a full page load and sent nothing on route changes. AppsFlyer also records a new visit inside an active session only when the URL carries a source such as a UTM tag, pid or click ID. Send the funnel steps you care about as events from the action handlers.
Can I send website visits to Meta, TikTok or Google Ads as conversions?
Not as visits. Postback mapping lists only custom web events, and visits are not forwarded. If a page view matters to a network, send it as a named event and map that event.
How fast should data appear after I install the SDK?
The events request is visible in the browser right away and should return status 200. Attribution waits about 30 minutes for a possible login, and reports run about two hours behind. AppsFlyer's Web SDK Test page streams events live. We have not run it, and if you load the SDK behind a query-key allowlist that lacks the af_websdk_test_session key, the test tab may show nothing.
