#megerbran

1 messages · Page 1 of 1 (latest)

humble elbowBOT
languid prism
#

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?

slim geode
#

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

languid prism
#

Maybe you can share with me a use case and walk me through so that I can have a better understanding on your requirement.

slim geode
#

Ok a min

#

Here is one

languid prism
#

Can you write me a description and tell me how you intent to use Stripe in this use case?

slim geode
#

Hi, I want to help my client track all successful subscriptions made by their customer

languid prism
#

Are these subscriptions created by Stripe? and what kinds of tracking are you looking for?

slim geode
#

So as to know the ones coming from Facebook and Google ads

#

Yes the subscription are made with stripe checkout subscription

languid prism
#

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?

slim geode
#

Yes that correct

languid prism
#

Got it, are you using CheckoutSessions API or PaymentLinks API?

slim geode
#

Checkout subscription

#

Checkout session

languid prism
#

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.

#

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.

slim geode
#

Ok I will check it out

#

Thanks