HOW TO SEND THE REFERRER DIRECTLY ON THE PROCESS CUSTOMER METHOD

There are scenarios where an advocate refers your services and/or products, but the friend does not use a share link to access your website. In this case is almost impossible to track the referral due to the referred prospect (friend) did not use a share link. The solution here is to ask the prospect to enter the referrer email on an extra field that can be added on your lead page and then pass that data to Genius Referrals to create the direct referral.
To pass the referrer directly to Genius Referrals, you can use the methods processCustomer or processCustomerAndBonus used to catch new referrals. You will be able to pass the referrer email and the campaign-slug. Use the parameters grReferrerEmail and grCampaignSlug to pass these data.
Heads up
This new feature was introduced in version 1.0.9 of our geniusreferrals-tool-box script. Ensure you are loading the latest of this script on your pages.
i
For getting the campaign-slug: go to your Dashboard, click on your account, under the 'Your referrals campaigns' click on the details action (eye icon) of your campaign. You should be able to find the campaign-slug

Getting the Campaign Slug

Sending the referrer directly

Finding the campaign slug
The following example ilustrates how to pass the data.

<script type="text/javascript">
    var toolbox = new grToolbox();
        toolbox.processCustomer({
            "grUsername" : "company48@email.com",
            "grTemplateSlug": "test-template",
            "grCustomerName": "john",
            "grCustomerLastname": "smith",
            "grCustomerEmail": "john@example.com",
            "grCustomerCurrencyCode": "USD",
            "grCampaignSlug": "get-10-of-for-90-days",
            "grReferrerEmail": "hank@example.com",
            "grCanRefer": false    });
    </script>
Once the processCustomer method is triggered, we will try to link the advocate with the referral taking into account the grReferrerEmail and grCampaignSlug parameters.
LANGUAGE