#megerbran
1 messages · Page 1 of 1 (latest)
Hi there, I don't quite understand how to make Meta Pixel, Google Pixel and Stripe to work together, can you share with me more context?
Hi, one of my clients is requesting to know if he can add Facebook pixel on Google pixel on stripe
It a Google and Facebook code to track conversion
Maybe you can share with me a use case and walk me through so that I can have a better understanding on your requirement.
Can you write me a description and tell me how you intent to use Stripe in this use case?
Hi, I want to help my client track all successful subscriptions made by their customer
Are these subscriptions created by Stripe? and what kinds of tracking are you looking for?
So as to know the ones coming from Facebook and Google ads
Yes the subscription are made with stripe checkout subscription
OK. so basically when your customer click a links through ads, it opens up a Stripe checkout page for subscription, and you want to track if the subscription converted from Facebook or Google, am I right?
Yes that correct
Got it, are you using CheckoutSessions API or PaymentLinks API?
OK. I assume you are using CheckoutSessions API. When you create a checkout session, you can specify a client_reference_id (https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-client_reference_id), it's an arbitrary string that you can use to reconcile this session with your internal system. For instance you can set client_reference_id=from_google to indicate that this checkout session is converted from a Google ads campaign.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Then you register checkout.session.completed event in your webhook endpoint so that it will get notified when a checkout session is completed, and you can retrieve the client_reference_id from the checkout session object in the event data.