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 offer a  Partnero Universal integration. Instructions can be found on the Integration page, Guides tab: 

Additionally, there are many other integration guides for various tools, as well as direct integration options, APIs, and webhooks.

Here are the requirements for a smooth integration process:

  • 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).

There are three main steps to any integration method:

  1. Identifying referred customers
  2. Tracking signups
  3. Tracking sales

We'll go through these steps below, using the Partnero Universal integration method.


1. Identify referred customers

Go to Integration > Guides tab and click Instructions next to Partnero Universal: 
Copy the website visitor tracking snippet and paste it into 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. 

How it works: Once someone visits your website via a referral link, the Partnero Universal snippet will create a cookie under your domain with a referring customer key. 


2. Track sign-ups

The second step is to track signups and create customers on your website and Partnero account. 

Insert the signup tracking snippet at the bottom of your signup form page. This snippet, when combined with the Universal snippet, identifies referred visitors and creates new customer entries in Partnero.

How it works: This particular snippet monitors your form signups. Once the form is submitted, the script checks the submission and checks if a Partnero cookie with a referring customer key is present. If this data is there, the customer will be created on your Partnero account. Alternatively, if there is no Partnero cookie, the script can identify a referred visitor from the URL.
Once these steps are complete, Partnero will recognize all referred customers, and the relationship will be visible on your Partnero account. 

3. Track sales

If you plan to give rewards based on customer sales, it's essential to inform Partnero about every sale.  You can do this in a few ways:
  • Use Stripe, Paddle or Charbee integrations
  • Implementing tracking through the Partnero API
  • Implementing tracking through the Partnero JS
  • Use Zapier or Make to connect everything.
Stripe, Paddle, and Chargebee can be authorized under Integration > Apps & Integrations
We also offer a Shopify app - read more here.

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:

  1. Go to Integration under Program. Switch to the Webhooks tab.
  2. Click Create webhook
  3. Enter the webhook name and the End-point URL:
  4. 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
  5. Click Create.

Third-party integrations

The final section on the Integration tab allows you to use our pre-made integrations with 3rd party apps, such as:

  • Payment processors Stripe, Paddle, Paddle Classic, Chargebee
  • E-commerce platforms: Shopify, WooCommerce
  • Automation: Zapier, Make
  • Rewards: Amazon Incentives