Getting Started for Web

For web integration, start here once you've created your GrowSurf program.

circle-info

Sandbox/testing environment

To start building your referral or affiliate program in a "sandbox" environment, we recommend creating two GrowSurf separate programs (one for development and one for production).

A program, also known as campaign, is simply a referral or affiliate program. Every GrowSurf program has a unique ID that you can find in the URL or from the program's GrowSurf Universal Code. Learn more herearrow-up-right.

Step 1: Install the GrowSurf Universal Code onto your site

Get the GrowSurf Universal Code.

The GrowSurf Universal Code is what allows referrals to be tracked and credited properly.

It's also what powers the GrowSurf window and embeddable elements to be displayed to your participants so that they can get their unique share link, click social share buttons, and check their referral stats and/or the leaderboard.

The GrowSurf Universal Code is a snippet of JavaScript that you paste into the <HEAD> of your website.

To get your program-specific GrowSurf Universal Code, follow the Installation steps in the Program Editor until you get to the instructions page (see image below).

Find your program-specific GrowSurf Universal Code in the Installation step of the Program Editor
circle-info

Note:

Step 2: Integrate with GrowSurf API(s)

Use our client-side or server-side APIs to integrate with GrowSurf to add participants and to trigger referrals.

Development Tool

Type

Description

Client-side

Create new participants, trigger referrals, get limited program data, get limited participant data, and open/close the GrowSurf window.

Server-side

Create new participants, trigger referrals, get program data, and get participant data from a secure environment.

Step 3: Automate reward fulfillment

Set up automatic reward fulfillment and data syncing by using Webhooks and/or Zapier.


Model Context Protocol (MCP)

The GrowSurf MCP serverarrow-up-right enables your AI agents and tools to directly interact with your GrowSurf referral and affiliate programs.

If you're using an AI tool such as Cursor, ChatGPT Codex, or Claude Code to help you implement GrowSurf, we recommend utilizing our MCP server.

Installation

View installation instructions for popular AI tools below.

  1. Download the MCP server herearrow-up-right

  2. Open Cursorarrow-up-right and navigate to Cursor Settings > Tools & Integrations

  3. Click New MCP Server

  4. Update mcp.json with the following configuration:

  1. Save the configuration file

  2. You should see growsurf-mcp under MCP Tools with a green dot, indicating the MCP server is successfully running

Resources


Troubleshooting

To troubleshoot common issues during installation, check out Help Center - Installationarrow-up-right articles.

Last updated

Was this helpful?