Integrate a Refer-a-friend program
The Refer-a-friend program integration goal is to track referred customer visits, sign-ups, and purchases (transactions).
We recommend using Partnero Universal integration. Instructions can be found on the Integration page:
- your website needs to be hosted under your domain;
- you need to have access to edit the website’s or app’s HTML form;
- all forms (including your signup form) must be hosted on your website (not inserted as an iframe using another domain or service).
1. Identify referred customers
- Partnero Universal Snippet: Add the Partnero Universal snippet to the <head></head> tags of all pages on your website. This snippet tracks visitors arriving via referral links by creating a cookie with the referring customer's key.
2. Track sign-ups
- Signup tracking: Insert the signup tracking snippet at the bottom of your signup form page. This snippet works with the Universal snippet to identify referred visitors and create new customer entries in Partnero.
3. Track sales
API and JavaScript integrations
You can choose Partnero API or Partnero JS integrations to track transactions. Stripe or other payment gateways are not mandatory.
The following section allows you to create API keys to send data between your application and Partnero.
The API integration can perform the following actions:
- Create a referring customer;
- Create a referred customer;
- Display customer data on your application;
- Create transactions.
Please see our detailed REST API guide with examples here.
Webhooks
The Webhooks section allows you to create webhooks for various actions within your program.
To create a webhook:
- Go to Integration under Program.
- Click Create webhook:
- Enter the webhook name and the End-point URL:
- Select what events you'd like to send. You can choose from the following events:
customer.created
customer.updated
customer.deleted
customer.credited
transaction.created
transaction deleted - Click Create.
Third-party integrations
The final section on the Integration page allows you to use our pre-made integrations with 3rd party apps, such as Zapier, MailerLite, Stripe and others.