Customize a Referral Tracking Link URL

By default, referral tracking links use your Infusionsoft account app name as the base URL: You can override this default prefix with a custom prefix by following the steps below:

  1. Start by copying the code at the bottom of this article and paste it into a text editor (e.g. Notepad.)  This code is also found in your Infusionsoft account. To located it navigate to CRM > Settings > Referral Partner Settings > Referral Partner Defaults.

  2. Customize the Infusionsoft app name URL (bolded in the code below).

  3. Save the file with a .html extension (e.g. referral.html.) 

  4. Log on to your hosting administration panel; e.g., GoDaddy, to upload the file to server connected to the custom URL; e.g., This creates a web page URL that looks something like this: 

    • Note: Your website administrator may need to help you with this step. You can send your webmaster the code as an email attachment.

  5. Log back into Infusionsoft and navigate to CRM > Settings > Referral Partner Settings > Referral Partner Defaults.

  6. In the Tracking section, enter the URL from #4 into the custom referral partner link URL field; e.g.,

  7. Click Save. This will update all redirect links for your affiliates.

<script type="text/javascript">
    var myCrm = ""
    var code = getQueryVariable("w") + "/";
    var affiliate = getQueryVariable("p") + "/";
    var ad = getQueryVariable("a");
    if (ad == "not found") {
        ad = "";
    } else {
        ad = ad + "/";
    window.location = myCrm + "/go/" + code + affiliate + ad;
    function getQueryVariable(variable) {
        var query =;
        var vars = query.split("&");
        var returnVal;
        var found = "false";
        for (var i = 0; i < vars.length; i++) {
            var pair = vars[i].split("=");
            if (pair[0] == variable) {
                returnVal = pair[1];
                found = "true";
        if (found == "false") {
            returnVal = "not found";
        return returnVal;

Did this article answer your question?
Thank you for your feedback!
Note! For questions about how to use this feature, please contact our Support Team. To provide feeback on the accuracy of this article, use the form below.
User Icon

Thank you for your feedback!