I am creating a small referral program SAAS product. One of the important task I have a "Refer a friend to Store".
So in this task, a Advocate (who will share links in social media). Then when someone clicks the link, they ll go landed in the shopify account creation page ( /account/register ). In this page after they fill the form, I need to get the details like email ID and name and push it to my server.
I know to place the <script> </script> tag at the liquid (customer/register.liquid) page. But I am not able to get the email id on successful account creation.
What is the procedure to get the values on successful account creation ??