Skip to main content
After every purchase, Upstack looks back at the customer’s paid ad touchpoints and fires extra purchase events that name the ad platform that started the journey and the one that closed it:
  • First Paid Click (fpc_*) — the platform of the earliest paid touchpoint
  • Last Paid Click (lpc_*) — the platform of the most recent paid touchpoint before the purchase
  • First and Only Paid Click (fopc_*) — fires in addition when the journey had exactly one paid touchpoint
The platform is part of the event name, such as fpc_meta_purchase or lpc_google_purchase, so one order can produce a First Paid Click for Meta and a Last Paid Click for Google Ads. Send these events to your ad platforms to optimize campaigns toward the customers they introduce or convert.
These events are for your ad platforms. How the Attribution board credits orders in your reports is a separate calculation with its own window setting, covered in How Upstack attributes orders to marketing clicks.

How it works

1

A purchase is tracked

Attribution starts from each purchase event that has an Upstack identity. A purchase Upstack couldn’t link to an identity is skipped.
2

Upstack waits about 15 minutes

The lookup runs 15 minutes after Upstack processes the purchase, so the customer’s latest events have landed before it searches them. Expect the attribution events about 15 minutes after the purchase event.
3

Upstack finds the paid touchpoints

It searches the customer’s events from the start of your attribution window up to the moment of purchase. The search covers every identity Upstack has linked to that customer, so a click on another device counts once the customer is identified. Only paid touchpoints count.
4

Upstack picks the first and last paid click

The earliest paid touchpoint is the first paid click and the latest is the last paid click. When there is exactly one paid touchpoint, it is first, last and only.
5

Upstack fires the events

For each click, Upstack takes its platform — Google Ads, Meta, TikTok or AppLovin — and fires the matching event. First Paid Click and Last Paid Click always fire. First and Only Paid Click fires as well when there was one paid touchpoint, so a single-touch purchase fires all three. New customers’ orders and first subscription orders fire an extra set.
6

Destinations receive them like any other event

Each event is a copy of the purchase under the new name. Upstack forwards it to your destinations as described in Where the events are sent.

What counts as a paid touchpoint

A touchpoint is a tracked event, not an ad click. An event counts as a paid touchpoint when both are true:
  • It is a page_view, view_content, view_category, add_to_cart, initiate_checkout, add_payment_info, lead or purchase event.
  • The page it fired on carried ad parameters that Upstack classifies as paid, such as utm_medium=paid or campaign and ad IDs. See Set up UTM parameters for the parameters each platform needs.
Upstack reads the parameters from each event’s own page URL, which has two effects:
  • Pages without the ad parameters don’t count. When a shopper lands from an ad and browses on, the later pages usually have no UTMs, so they aren’t paid touchpoints.
  • One ad click can create several touchpoints. Every event on the landing page shares its URL. A product landing page that tracks page_view and view_content gives two paid touchpoints, and a reload adds another. First and Only Paid Click needs exactly one, so it doesn’t fire in these cases even though the shopper clicked a single ad.
Attribution events exist for four platforms: Google Ads, Meta, TikTok and AppLovin. Paid touchpoints from other platforms, such as Pinterest, Snapchat or Microsoft Ads, still count when Upstack picks the first and last click and counts touchpoints, but no event exists for them. If the first paid click was a Pinterest ad, no fpc_* event fires for that purchase.

Example journeys

The table shows the every-purchase set. A new customer’s order or a first subscription order also fires the matching nc or si events for the same clicks.

Event names

Every event name follows the same pattern: <model>_<platform>[_<set>]_purchase. For example, lpc_tiktok_nc_purchase fires for a new customer’s order whose last paid click was a TikTok ad.

Event sets

Sets add up. A new customer’s first subscription order with a single Meta paid touchpoint fires nine events: three in each set.

All event names

Upstack shows the snake_case name in your event stream and in the Google Ads conversion mapping. Meta and TikTok receive the names in the other two columns, so match those when you set up conversions.

Where the events are sent

Meta and TikTok receive the events for every platform’s clicks, not only their own, so Meta also gets lpcGooglePurchase and fopcTiktokPurchase. Optimize each platform on the events named for it, such as fpcMetaPurchase in Meta, unless you want another platform’s journeys on purpose.

What each event contains

Each attributed event is a copy of the original purchase: the same order ID, value, currency, products, customer details and purchase time. Only the event name and event ID change. With its own event ID, each one counts as a separate conversion, not a duplicate of the purchase.
Every attributed event carries the full order value. If one campaign optimizes on several of them, or on one of them and purchase, the ad platform counts the same order more than once. Use one as the primary conversion and keep the others for reporting.

When events don’t fire

No attribution events fire for a purchase when:
  • The purchase has no Upstack identity.
  • No paid touchpoints fall inside the attribution window.
  • The touchpoint lookup fails. Upstack doesn’t retry it, so a purchase is never attributed twice.
A single model is missing when its click came from a platform without attribution events. A Pinterest first click gives no fpc_* event, but the lpc_* event still fires if the last click was Google Ads, Meta, TikTok or AppLovin. The events fire but no destination receives them for the same orders that destinations skip as purchases: zero-value orders, Shopify draft orders, POS orders, exchanges from Loop, Returnly and Happy Returns, Matrixify imports, recurring subscription orders, and order sources or tags you’ve blocked on the destination.

Attribution window

The attribution window sets how far back before the purchase Upstack looks for paid touchpoints. Change it in Pixel Settings under Purchase Event Attribution: The setting applies to purchases processed after you save it. A shorter window can change which click comes first. With a 7-day window, a Google Ads visit three weeks before the purchase no longer counts, so a Meta visit last week becomes the first paid click. Lifetime gives the most complete picture. Pick a shorter window if your purchase cycle is quick and you want only recent clicks to count.

Using the events

  • fpc_* events show which campaigns introduce customers to your brand. Map fpc_google_nc_purchase to a Google Ads conversion action to optimize for first-touch acquisition of new customers.
  • lpc_* events show which campaigns close the sale. Compare First Paid Click and Last Paid Click to see which campaigns start journeys and which ones finish them.
  • fopc_* events mark purchases where one paid touchpoint drove the whole journey, the clearest case of a single ad doing the work.

Set up UTM parameters

Tag your ad URLs so Upstack can tell paid touchpoints apart.

Upstack-generated events

The other events Upstack creates from each purchase.

Configure Google Ads

Set up the Google Ads destination that receives these events.

Verify events

Confirm events are firing from your storefront.