Pixelflow
Integrations

Trigger Events from Stripe Payments

Use the Stripe integration to send purchase and subscription events to Meta automatically when payments complete in Stripe. This is the simplest way to track Stripe sales without building a custom setup.

Before you start, make sure your site is already connected in PixelFlow and you have access to create a restricted API key in Stripe.

Connect Stripe

  1. In your PixelFlow dashboard, go to Events and click Add Trigger.

  2. Choose Stripe Payments from the integration options.

  3. The Connect Stripe modal explains how PixelFlow forwards Stripe events to Meta with customer data attached for better attribution.

Connect Stripe modal showing event types sent to Meta
PixelFlow sends Stripe events server-side to your Meta pixel.

Choose which events to send

PixelFlow shows a recommended setup that works well for most accounts. You can customize it if needed.

Modal showing suggested setup and advanced options for Stripe events
Choose which Stripe events trigger Meta events, or use the recommended defaults.

Suggested setup

By default, PixelFlow enables:

  • Purchase — for every new sale and the first payment of every subscription.

  • StartTrial — when someone starts a free trial.

  • Subscribe — when someone saves a payment method without being charged (setup mode).

Advanced setup

Click Customise which events fire to adjust the options:

Revenue events

  • First-time purchases (on by default) — Send a Purchase event for one-off sales and the first payment of every subscription.

  • Subscription renewals (off by default) — Send a Purchase event each time a subscriber is charged again. Most accounts don't need this enabled.

Lead and signup events

  • Free trial sign-ups (on by default) — Send a StartTrial event when someone starts a free trial. Choose whether to send no value (recommended) or the subscription price as the event value.

  • Payment method setups (on by default) — Send a Subscribe event when someone saves a card without being charged. This happens when a Stripe subscription is configured in setup mode, such as "add payment details now, get charged later." Choose whether to send no value (recommended) or the subscription price as the event value.

Purchase events are not sent to Meta if the payment value is $0

Add your Stripe restricted API key

PixelFlow needs a restricted key to create webhooks in your Stripe account. This takes about a minute.

Connect Stripe modal showing API key setup instructions
Create a restricted key in Stripe with webhook-only access.
  1. Click Open Stripe API keys to go directly to the right page in Stripe.

  2. Click Create restricted key.

  3. Choose Providing this key to a 3rd party application, set the name to PixelFlow and URL to pixelflow.so.

  4. Check Customise permissions for this key, set Webhook to Write, and leave all other permissions as None.

  5. Click Create key, then paste the key (starts with rk_live_) into PixelFlow.

The restricted key can only create and delete webhooks — PixelFlow cannot access the rest of your Stripe account.

Select your payment method

Choose how you're collecting payments in Stripe so PixelFlow can show you the exact setup steps.

Connect Stripe modal showing payment method options
Select the payment method you use in Stripe.
  • Payment Link — A shareable Stripe link (starts with buy.stripe.com) you send customers or use on a button. Most common.

  • Third-party tool — Memberstack, Outseta, Bolt, or similar handles checkout for you.

  • Stripe Checkout — Your site redirects customers to a Stripe-hosted page (URL changes to checkout.stripe.com).

  • Pricing Table — A pre-built table embedded with a <stripe-pricing-table> snippet.

  • Stripe Elements — A custom payment form built with Stripe's developer SDK.

This optional step dramatically improves attribution by passing extra buyer data to Meta. It takes about 30 seconds in Stripe. The exact steps differ depending on your Stripe checkout setup, so select your Stripe setup and follow the instructions.

Connect Stripe modal showing redirect link setup instructions
Setting up a redirect link improves attribution significantly.

Review and connect

The final step shows a summary of your setup before connecting.

Connect Stripe modal showing review summary and data to be sent
Review your settings before connecting Stripe.

Click Connect Stripe to finish the setup.

What data is sent

When an event fires, PixelFlow sends it to Meta with:

  • Email address

  • Name

  • Phone number

  • Purchase value (for Purchase events)

  • Currency

  • Content Type

If you set up the redirect link after Stripe, PixelFlow also includes:

  • IP address

  • City, State, Zip Code & Country

  • fbc (if the user came from a Facebook ad)

  • External ID

  • User Agent

  • fbp

Events are deduplicated automatically. If Stripe sends the same payment multiple times via webhooks, PixelFlow sends only one event to Meta.

Test the connection

  1. Complete a test payment in Stripe.

  2. Open your PixelFlow Events Log and confirm the event appears.

  3. Check Meta Events Manager to verify the event arrives there as well.

For a full testing workflow, see How to Test and Verify Your PixelFlow CAPI Setup.

What to do next

Was this helpful?