Stripe Integration

How to track Stripe payments link integration with Anytrack.

The Stripe integration overview:

  1. When a visitor lands on your website, AnyTrack identifies the user and its first party data.
  2. AnyTrack AutoTag the Stripe payment link with the required tracking data.
  3. When the purchase is completed, AnyTrack receives the conversion data via Webhook integration.

Stripe Payment link tracking:

  1. Append the ?client_reference_id=--CLICK-ID-- to your payment link.
https://buy.stripe.com/test_00g6qSh021cG5gc8ww?client_reference_id=--CLICK-ID--
πŸ‘

AutoTag

When AnyTrack loads on your web page, it will substitute the placeholder --CLICK-ID-- with a clickid.

πŸ‘‰ You can Hover on this link to see it.

  1. Save your page and test the link to see if the parameter is appended to the link.

Stripe conversion tracking setup

  1. Create a custom integration in AnyTrack
  2. Open your Zapier or Make account.
  3. Create a new Zap
    1. App Stripe
    2. Event: Checkout Session Completed
  4. Action
    1. Webhook POST
    2. Paste the AnyTrack webhook
    3. Map the events and Event Attributes
    4. Test, Save, Publish

If you want to use the Webhook function within Stripe, select thecheckout.session.completed event and map the event parameters to AnyTrack Event Attributes.

🚧

Pay attention!

Stripe sends webhook data in cents so you need to multiply the amount by 100 before sending it to AnyTrack.


πŸ”— Data Mapping Between Stripe and AnyTrack

🧩 Prerequisites

Before setting up data mapping, ensure the following:

  1. Stripe Payment Link: The link includes ?client_reference_id=--CLICK-ID--.
  2. AnyTrack Pixel Installed: The tracking script runs on your website.
  3. Reference ID Parameter: The client_reference_id parameter contains the AnyTrack clickid.

βš™οΈ Flow Overview

  1. Visitor clicks a Stripe link tagged with AnyTrack’s clickid.
  2. After successful payment, Stripe triggers a webhook or Zap.
  3. The webhook sends mapped data (including the clickid and transaction info) to AnyTrack.

⚑ Zapier Integration Setup

Step 1: Trigger

  • App: Stripe
  • Event: Checkout Session Completed

Step 2: Format Value

  • App: Formatter by Zapier
  • Action: Numbers β†’ β€œPerform Math Operation”
  • Formula: {{amount_total}} / 100 (convert cents to dollars)

Step 3: Webhook POST to AnyTrack

  • App: Webhooks by Zapier
  • Action: POST
  • URL: AnyTrack Webhook endpoint (from your Custom Integration setup)
  • Payload Type: JSON

Field Mapping Example:

Stripe FieldAnyTrack FieldDescription
client_reference_idclickidLinks conversion to the AnyTrack visitor
amount_total / 100valuePurchase amount (converted to dollars)
currencycurrencyISO currency code (e.g., USD)
customer_details.emailemailCustomer email (optional)
payment_statusstatusPayment status (e.g., paid)
idtransaction_idStripe’s transaction ID

🧠 Important Note

You cannot map event attributes directly through Stripe’s native webhook. To send event data to AnyTrack, you must use an intermediary automation service like Zapier, Make, or any custom webhook provider capable of formatting and forwarding the payload correctly.

βœ… Expected Outcome

Once configured:

  • Stripe payments trigger conversions in AnyTrack.
  • Each conversion is linked to the correct visitor and campaign.
  • Conversions automatically forward to your connected ad platforms.

The Webhook Payload Example:

{
  "request": {"idempotency_key": null,"id": null},
  "data": {"object": {"client_reference_id": "p8qkMansHXKGTX9GmPTbMJ6GmSjTf4mUys","amount_total": 10000,"currency": "usd","payment_status": "paid","customer_details": {"email": "[email protected]"},"id": "evt_1M5sv6JhmZq84NMqbCfCcgRL"}},
  "type": "checkout.session.completed"
}