#alcakes
1 messages · Page 1 of 1 (latest)
hello! we have a page on how to integrate Google Analytics - https://stripe.com/docs/payments/checkout/analyze-conversion-funnel. Have you taken a look at this?
@deep knoll I'm not clear on "Create a server-side endpoint that creates the Checkout Session and serves the pages." since the conversion happens off page, I just want the step "payment_intent.succeeded" to populate payment amount as well as conversion confirmation. Can Stripe send people back to our site for a Thank you page after the conversion? that would simplify things...
If you want to listen to the checkout.session.completed event to track conversion, you should be refering to https://stripe.com/docs/payments/checkout/analyze-conversion-funnel#server-side-event-recording
@deep knoll Thanks. This is so convoluted. Since I'm not a developer.... should I just use a 3rd party tool to connect this? https://tray.io/connectors/google-tag-manager-stripe-integrations
The Tray Platform’s robust Google Tag Manager and Stripe connector connects services without the need for separate integration tools. Visit Tray.io to learn more.
we mainly help developers who want to directly integrate with Stripe APIs on this channel so i'm not really familiar with what 3rd party tools are available for you to use. You can always try them out and see if it works for you
Thanks
@deep knoll - for this... I'm still not clear... will it go back to our site? Or will Stripe generate the thank you at the bottom? (while still recording the transaction and amount?). <html>
<head>
<!-- START GOOGLE ANALYTICS -->
<script
async
src="https://www.googletagmanager.com/gtag/js?id=<GOOGLE_ANALYTICS_CLIENT_ID>"
></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
window.dataLayer.push(arguments);
}
gtag("js", new Date());
gtag("config", "<GOOGLE_ANALYTICS_CLIENT_ID>");
</script>
<!-- END GOOGLE ANALYTICS -->
<title>Thanks for your order!</title>
</head>
<body>
<h1>Thanks for your order!</h1>
<p>
We appreciate your business! If you have any questions, please email
<a href="mailto:orders@example.com">orders@example.com</a>.
</p>
</body>
</html>
In short, this is the success.html page. You would implement the success.html and cancel.html page on your website. Then when creating a Checkout Session, you would pass in the relevant urls for success_url and cancel_url
@deep knoll - got it! so Stripe will do this automatically if this code is placed on those pages? or is it more involved than that? (we don't care about cancel page, only success page)