Atribu
Features

Payment Links

Create Stripe Payment Links with built-in attribution tracking so every payment is connected to the ad that drove it.

Payment Links let you create Stripe payment URLs that include Atribu's tracking metadata. When a customer pays through one of these links, Atribu can trace the payment back to the exact ad campaign that brought them.

The problem

Normal Stripe payments lose the connection to the original ad click. A customer might click your ad on Monday, browse your site, and then pay on Thursday after receiving a follow-up email. By the time the payment arrives, there is no direct link between the Stripe charge and the original ad click.

Atribu creates Stripe Payment Links that include tracking metadata. This metadata connects the payment to the visitor's session, making attribution automatic.

Three layers of attribution

Payment Links use three methods to ensure attribution works, even when one layer fails:

The tracking cookies (visitor ID and session ID) are embedded in the Stripe checkout session metadata. When the customer completes payment, Atribu reads these cookies from the webhook payload and instantly links the payment to the original visit.

Post-payment redirect

After payment, the customer is redirected back to your website with a Stripe session ID in the URL. The Atribu tracker on your site detects this and fires a stripe_checkout_completed event, creating a direct link between the payment and the browsing session.

Identity graph fallback

Even without cookies or redirects, the customer's email from the Stripe payment is matched against their earlier form fill or booking through Atribu's identity graph. If the same email appeared in a form submission during a tracked session, the payment is attributed to the original ad click.

Go to your profile settings or developer page where Payment Links are managed.

Configure the payment

Set the required fields:

  • Amount — the payment amount in cents (e.g., 5000 for $50.00)
  • Currency — the currency code (USD, MXN, EUR, etc.)
  • Product name — a description of what the customer is paying for

You can associate the payment link with:

  • A specific customer profile — pre-links the payment to a known customer
  • A specific campaign — directly attributes the payment to a campaign

Optional: set a redirect URL

Provide a URL on your tracked website where customers are sent after payment. This enables the post-payment redirect attribution layer. The URL automatically gets a ?session_id={CHECKOUT_SESSION_ID} parameter appended.

Copy and share

Copy the generated Stripe Payment Link URL and share it with your customer — via email, SMS, WhatsApp, or embed it on your website.

Payment Link revenue counts as cash

Payments made through Payment Links always count as "cash" revenue with revenue_type = 'cash'. This means they are included in ROAS calculations alongside your other Stripe and MercadoPago payments.

How it works technically

When you create a Payment Link, Atribu:

  1. Creates a Stripe Payment Link via the Stripe API using your connected Stripe account
  2. Embeds atribu_profile_id, atribu_customer_profile_id, and campaign_id in the payment link metadata
  3. If a redirect URL is provided, appends the Stripe checkout session ID for post-payment stitching
  4. Stores the link in the payment_links table for audit and tracking

When the customer pays, the standard Stripe webhook flow handles the rest — the checkout.session.completed event carries all the metadata needed for attribution.

On this page