# How to Track Referrals From Embeddables Flows > Credit every referred Embeddables respondent to the right referrer. Paste the GrowSurf code into one Embeddables Action and push it to Production. - URL: https://growsurf.com/integration-guides/embeddables-referral-signup-tracking/ --- [← View All Guides](/integration-guides/) Add one Action to your Embeddable, and every referred respondent is credited to the person who referred them. Want the full setup walkthrough? Use these docs for exact setup steps, supported fields, and troubleshooting. [GrowSurf Embeddables setup guide](https://docs.growsurf.com/integrations/embeddables) [Embeddables Actions](https://docs.embeddables.com/features/actions) When a referred friend gives their email address in your Embeddables flow, GrowSurf can add them to your referral program and credit the person who sent them. An Embeddable runs right on your page, so an Embeddables Action can hand the email address straight to GrowSurf. The tracking code goes into an Action inside Embeddables, not onto your page. The same setup works for an affiliate program. There, GrowSurf credits each lead to the affiliate who sent it. The GrowSurf Universal Code must be installed on the page where your Embeddable is published. The installation steps in GrowSurf show you where to put it. ## Integration Steps ### Open the Embeddables setup in GrowSurf In the Program Editor, go to **Installation** and continue to the step that asks how GrowSurf will know a referred friend signed up. Under *Using a form builder? Prep your form first*, click the Embeddables icon. The GrowSurf installation step that asks how GrowSurf will know a referred friend signed up, with a row of form builder iconsThe form builder icons sit under the question in Program Editor > 5. Installation. The **Prep your form** window opens with Embeddables selected. Keep it open while you work. It lists every step and holds the code you paste later. The GrowSurf Prep your form window with Embeddables selected, showing the requirements and the first setup stepsPrep your form lists what Embeddables needs before you start. ### Add a trigger for the moment you have the email address In Embeddables, open the Embeddable that is published on your website. Open the **Logic** card, go to **Triggers**, and add a trigger that fires once the respondent has entered their email address, such as a click on the button that submits it. ### Paste the GrowSurf code into an Action On that trigger, create a new Action, name it “GrowSurf referral tracking”, and paste in the code from the Prep your form window. GrowSurf reads the email address from the User Data key `email` or `email_address`, or else from the one answer that is an email address. It reads the name from `first_name` and `last_name`, or a single `full_name`. Click **Save**, open the Version Control card, select that version, and click **Production**. ### Finish the installation Back in GrowSurf, choose **Programmatic** as the way GrowSurf will know a referred friend signed up. Then finish the remaining installation steps. ## Tips #### Test it with a real referral link Open your own referral link in a private browser window, then fill out the form. The new person should show up in GrowSurf as referred by you. Visiting the form directly does not add anyone, so test through a referral link. #### Do not run it when the flow loads A trigger on flow load fires before anyone has typed, so there is no email address to send. Tie the Action to the step where the email address is entered. Recommended Guides [Formsort logo How to Track Referrals From Formsort Flows Hook GrowSurf into your Formsort web embed, and every referred respondent who finishes the flow is credited to the person who referred them. View Guide →](/integration-guides/formsort-referral-signup-tracking/) [Tally logo How to Track Referrals From Tally Form Signups Paste one GrowSurf code block next to your embedded Tally form, and every referred signup is credited to the person who referred them. View Guide →](/integration-guides/tally-referral-signup-tracking/) [Zapier logo How to Sync Referral Leads to Your CRM with Zapier + GrowSurf Use GrowSurf's New Participant trigger in Zapier to create or update CRM records when someone joins your referral program. View Guide →](/integration-guides/zapier-referral-crm-sync/) ## FAQ #### Do I paste anything on my website? Only the GrowSurf Universal Code. The tracking code lives in the Embeddables Action. #### My email field is not called `email`. What do I do? Usually nothing. GrowSurf also checks `email_address` and `emailAddress`, then uses the answer that is an email address if there is only one. If your flow asks for more than one email address, rename the respondent’s key to `email`, or nobody is added. #### Will people who were not referred be added? No. The code adds someone only when GrowSurf can tell who referred them. A visitor who found your Embeddables form on their own is not added to your program. ## Turn word of mouth into steady growth from your customers Launch a refer-a-friend or affiliate program that lowers your acquisition costs and builds customer loyalty, with little engineering work. [Launch Your Program](https://app.growsurf.com/signup) 14-day free trial No credit card required Trusted by marketing and product teams that grow through customer, user, and partner referrals. ## Built for lean teams, scaled for category leaders Thanks. You're signed up. Something went wrong. Please try again.