Skip to main content
Bokun → AppsFlyerIntegration guide

Connecting Bokun to AppsFlyer

Bokun is owned by Tripadvisor and connects operators to Viator, so it is a distribution network with a booking engine attached rather than the other way round. AppsFlyer exists because mobile app attribution is a different problem from web attribution, and on iOS a large share of it is now aggregated and delayed by design rather than by accident. The join between them succeeds or fails on one thing: whether the AppsFlyer device identifier, appsflyer_id reaches the Bokun booking before the conversion happens, because AppsFlyer can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

AppsFlyer and Bokun: app bookings need your own device mapping

AppsFlyer fits only if your app sells tours through Bokun. Store the appsflyer_id against the checkout session on your backend, then post the confirmed Bokun booking to AppsFlyer's server-to-server events API with revenue and an ID from the confirmation code. Avoid double counts from in-app web views, report cancellations, and keep website bookings out entirely.

AppsFlyer is for operators whose app sells tours, typically an audio-guide or city-pass app that uses Bokun behind the scenes. Bokun has no idea which phone made a booking, so the device join is yours to build: when the app starts checkout, store the appsflyer_id against the session on your backend, and when Bokun confirms the booking, look it up and post the purchase to AppsFlyer's server-to-server events API with the revenue.

The common failure is a Bokun widget opened in an in-app web view. The SDK sees the app session, but the booking completes in web content that may not report back, so the purchase arrives either twice, once from the SDK guessing and once from your server, or not at all. Pick one source, preferably the server event triggered by the confirmed booking, and give it a stable ID from the confirmation code.

Web bookings do not belong in AppsFlyer. A traveller who installs the app but books on your website has no device ID on that booking, and sending it produces revenue with no install behind it. Report cancellations too; a booking cancelled before departure that stays in AppsFlyer keeps flattering the network that drove the install.

Bokun → AppsFlyer · what breaks

Why this join usually fails — Bokun → AppsFlyer

  1. 01

    The AppsFlyer device identifier, appsflyer_id never reaches Bokun

    Reseller bookings originate on Viator, GetYourGuide or an agent's system. There is no session of yours anywhere in that chain.

  2. 02

    Distribution revenue attributed to advertising

    Bokun's purpose is to put your product in front of travellers on other people's platforms. That works, and none of it is something your search campaign caused.

  3. 03

    Web conversions sent to a mobile attribution platform

    This is the common error and it produces confident nonsense. A purchase made on your website has no device identifier and no install behind it. AppsFlyer will either discard it or attribute it to nothing, and the revenue disappears somewhere between the two systems without anyone noticing it went.

  4. 04

    Nothing reconciles afterwards

    AppsFlyer shows the event on the raw data export with its attributed media source. Check the raw export, not the aggregate dashboard, and confirm the event carries a device identifier rather than landing as organic.

Bokun → AppsFlyer · the fix

What working looks like — Bokun → AppsFlyer

  • The AppsFlyer device identifier, appsflyer_id on every booking

  • Conversions arriving in AppsFlyer

    The event is attributed to the install source, forwarded to whichever networks are configured, and appears in the cohort reporting.

  • Reconciled against the source

Bokun → AppsFlyer · architecture

How Bokun and AppsFlyer actually connect

  1. 1

    Bokun holds the truth

    Reseller bookings carry an OTA commission that can reach a quarter of the ticket price. Your net rate and the traveller's price are different numbers and only one of them is yours.

  2. 2

    AppsFlyer needs a click to match

    AppsFlyer needs the device identifier and an event name it recognizes, plus the revenue value for in-app purchases. A server event about a user with no linked device cannot be attributed to an install.

  3. 3

    The identifier is the bridge

    The AppsFlyer device identifier, appsflyer_id, captured at the visit and carried into the Bokun booking.

  4. 4

    The event source decides reliability

    Send direct bookings at net value. Never send reseller bookings as conversions.

  5. 5

    Deduplication at the destination

    AppsFlyer deduplicates in-app events by its own event identifier. Sending the same purchase from both the SDK and your server produces two events and double-counts revenue in every dashboard downstream, including the ad networks AppsFlyer forwards to.

Bokun → AppsFlyer · normal or broken

Working vs. broken, side by side — Bokun → AppsFlyer

Normal, not a fault

  • The AppsFlyer device identifier, appsflyer_id present on the booking

  • Sent from the Bokun booking record

  • Deduplicated correctly

    AppsFlyer deduplicates in-app events by its own event identifier. Sending the same purchase from both the SDK and your server produces two events and double-counts revenue in every dashboard downstream, including the ad networks AppsFlyer forwards to.

  • Reconciles with the source

Actually broken

  • The AppsFlyer device identifier, appsflyer_id missing on most records

    Reseller bookings originate on Viator, GetYourGuide or an agent's system. There is no session of yours anywhere in that chain.

  • Sent from the browser

    Bokun's purpose is to put your product in front of travellers on other people's platforms. That works, and none of it is something your search campaign caused.

  • Counted twice, or not at all

    This is the common error and it produces confident nonsense. A purchase made on your website has no device identifier and no install behind it. AppsFlyer will either discard it or attribute it to nothing, and the revenue disappears somewhere between the two systems without anyone noticing it went.

  • Nobody has reconciled it

Bokun → AppsFlyer · diagnose

Diagnostic order — Bokun → AppsFlyer

  1. 01

    Count bookings carrying the AppsFlyer device identifier, appsflyer_id

  2. 02

    Follow one real conversion end to end

  3. 03

    Split by channel and check whether values are gross or net

    Two questions, both usually answered wrongly, and together they can overstate return by a factor of two.

  4. 04

    Check what share of your revenue happens in the app at all

    If most purchases are on the web, AppsFlyer is not your conversion destination and the work belongs somewhere else entirely.

  5. 05

    Read the match rate, not the success message

    AppsFlyer shows the event on the raw data export with its attributed media source. Check the raw export, not the aggregate dashboard, and confirm the event carries a device identifier rather than landing as organic.

Bokun → AppsFlyer · prove

How it gets proven — Bokun → AppsFlyer

Source of truth

Bokun bookings by departure, split into your own website and reseller channels, valued at your net rate.

  • The AppsFlyer device identifier, appsflyer_id confirmed present on a live booking.
  • In-app revenue events reconciled per transaction against your billing system, with the organic share stated rather than assumed away.
  • Direct bookings reconciled at net value against imported conversions.

Bokun → AppsFlyer · free audit

What we check in the free audit

  • Count bookings carrying the AppsFlyer device identifier, appsflyer_id
  • Follow one real conversion end to end
  • Split by channel and check whether values are gross or net
  • Check what share of your revenue happens in the app at all
  • Read the match rate, not the success message

Checked against

Bokun bookings by departure, split into your own website and reseller channels, valued at your net rate.

Get my free conversion tracking audit

Free30 minutesNo obligation

Bokun → AppsFlyer · when not to buy

When you don't need this — Bokun → AppsFlyer

  • Measure identifier coverage yourself first — pull your last hundred bookings and count how many carry the AppsFlyer device identifier, appsflyer_id.
  • An operator selling mainly through Viator has a distribution question, not a tracking question.
  • If you have no mobile app, this is not a destination for you. If you have one but sell mostly on the web, send web conversions to your ad platforms directly and use AppsFlyer only for install and in-app events.

Bokun → AppsFlyer · what we deliver

What gets built — Bokun → AppsFlyer

  • Identifier capture into Bokun

    Attribute direct-website bookings only, and report reseller volume as a separate channel at net rate.

  • Event source: the Bokun booking record

    Send direct bookings at net value. Never send reseller bookings as conversions.

  • Dispatch to AppsFlyer

    The AppsFlyer server-to-server events API, posted from your billing system with the device identifier and revenue.

  • Reversals where they exist

    Cancellations reverse.

Written guarantee

95%+ tracking accuracy

Measured against Bokun bookings by departure, split into your own website and reseller channels, valued at your net rate.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Bokun → AppsFlyer questions, answered

Store the AppsFlyer device ID when the app starts checkout, then post the confirmed booking server-side with that ID and the booking value.

Free · 30 min

Get Bokun and AppsFlyer joined properly

Free30 minutesNo obligation