How to retrieve recently made plan purchase transaction details (in Webflow)? Answered

Post author
Denis Popov

When user makes a plan purchase, on purchase confirmation page I need all order details (sum, user id, product id, etc.) to be retrieved to create a data scheme for Google Analytics to track conversion details. Can't seem to find any samples or JavaScript method to access recently made purchase data.

Comments

3 comments

  • Comment author
    Josh Lopez

    Hey Denis Popov

    You would need to do this using a webhook when the members plan is added. We have integrations with Make and Zapier or you can just use webhooks alone.

    0
  • Comment author
    Denis Popov
    • Edited

    Thank you Josh for your answer. But this will not solve my problem. Zapier or webhook won't allow Google tracking logic to identify the user session correctly, I assume. That means I will just see the purchases in Analytics, but they won't be linked with sources, where users are coming from in the first place. And I won't be able to get reporting, what traffic sources bring more purchases, etc.

    The only correct way to track all that info is having the Google required data structure on the page itself, with all order details there. So is there a way of having the order information retrieved directly on the Webflow page?

    0
  • Comment author
    Josh Lopez

    Ah ok, you would have to just track the button being clicked and then if the user was brought to the signup redirect page. We dont expose anything client side because when a member purchases a plan they do so in the stripe portal.

    0

Please sign in to leave a comment.