How can we help?

Connect website activity to a mobile app user before sign-in

  • Updated

AppsFlyer can connect a person's website activity before sign-in to the same person after they install and sign in to your mobile app. This helps you measure a web-to-app journey that begins before you know the user is logged in.

 

Why this matters

Imagine a shopper arrives at your website from a campaign, views products, then installs your app and makes a purchase. They might click an install link, or they might leave the website and install the app later without clicking one. Your website recorded the product views, and your app recorded the purchase. If those actions appear to belong to separate people, you cannot see the full path from the campaign to the purchase.

AppsFlyer can connect the earlier website activity to the person identified when they sign in to the app. This gives you a clearer view of the path from the campaign to activity on both platforms, without building the connection yourself.

There are three ways to connect a web visit to an app install:

  • With a click: The visitor clicks a Smart Banner or Smart Script link that takes them to the app. The link carries the website visitor's identity to the app.
  • Without a click: Smart Script can record an impression when the visitor views the website. If impression tracking and view-through attribution are enabled, AppsFlyer can match a later app install to that visit without an install-link click. The impression uses the same Smart Script link, so it carries the website visitor's identity too.
  • From desktop with a QR code: The visitor scans a Smart Script QR code on the desktop website with their phone. The QR code holds the same link, so it carries the website visitor's identity to the app.

Before you start

  • Your website uses the AppsFlyer Web SDK to record the visits and actions you want to connect.
  • Your website and mobile app belong to the same Product Line, and cross-platform attribution is set up.
  • Your website uses Smart Banner or Smart Script for web-to-app journeys.
  • Your app sends a customer user ID when the person signs in. The visitor does not need to sign in on the website first.

Set up the connection

  1. Confirm that the Web SDK records the website actions you want to include in the journey.
  2. For all journeys, with or without a click, have your web developer add the Web SDK's first-party visitor cookie to the outgoing Smart Banner or Smart Script link as cookie_id. Neither tool adds this value automatically. For Smart Script, add it when the link is created, so the impression and the QR code carry it too.
  3. For Smart Script journeys without a click, ask your developer to call the impression function and enable view-through attribution. Smart Script does not record impressions simply because it is installed.
  4. Confirm that the mobile app sends the customer's user ID on sign-in.

What to expect and limitations

  • Sign-in timing: AppsFlyer can fill in a missing customer user ID for earlier app events only within its 1–4 hour CUID enrichment processing window. If the app sends the ID after the window closes, the earlier app event is not retroactively updated and this journey cannot be connected through that event. Send the customer user ID as soon as it is available after sign-in.
  • Mobile attribution windows: A click or impression can receive install credit only while it is within the applicable mobile install lookback window. If the visitor does not click and installs after the Smart Script impression's view-through window ends, that impression cannot receive install credit and the no-click path will not connect this web visit to the app journey. An eligible click can take priority over an impression and change which campaign receives credit.
  • Mobile web impressions: Smart Script view-through attribution works on mobile web, not desktop.
  • Visitor identity: The Web SDK visitor cookie must be included in the Smart Banner or Smart Script link. If it is missing, AppsFlyer cannot use that click or impression to connect the earlier website actions to the app user.