#a6kerim_webhooks
1 messages · Page 1 of 1 (latest)
👋 Welcome to your new thread!
⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1295740115502497864
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi! Getting UTM_TERM via Webhook. Now, to get utm_term for each transaction, I use export in the transactions tab. However, I need to use a webhook and get utm_term after each subscription creation (successful) on a third-party system. How do I set up this process in Stripe? What data should I use and where should I click? Please help me
hey there sorry for the delay
Do you have an example payment/session where you used this?
As far as I can tell, UTM parameters are only propagated to your redirect URLs are sessions are completed, they are not stored on session objects
Only client_reference_id is sotred/persisted on the Checkout session:
https://docs.stripe.com/payment-links/url-parameters#streamline-reconciliation-with-a-url-parameter
To add UTM codes, specify redirect as your confirmation behavior. When customers complete a payment, your redirect URL contains the UTM code parameters specified in your payment link URL. Here’s what a payment link looks like with an appended UTM codes: https://buy.stripe.com/test_eVa5nPg1j1wmfXq5kr?utm_medium=earned_email&utm_source=marketo&utm_campaign=campaign_a
So you'd need to track these on hits to your redirect URLs
If you want something to persist on the object, use client_reference_id -- that is part of the session object you get in checkout.session.completed webhooks