Building URLs for the Infusionsoft Affiliate System

KB2014004

If you've installed our AnalyticsConnect.io software that automatically posts sales data from Infusionsoft into Google Analytics Ecommerce and you're running an affiliate program from Infusionsoft, you'll want to read this page to learn how to build affiliate links that can be tracked inside of Google Analytics as affiliate traffic.

AnalyticsConnect.io automatically records the affiliate name, if present, for all sales inside of the Google Analytics Ecommerce reports. This data is viewable from inside your Google Analytics account in two ways. Go to the "Reporting" tab. Click on "Conversions" inside the left sidebar, and then on "Ecommerce", and then "Marketing", and then on "Affiliate Code". Optionally, you can add affiliate data to any report from the Secondary dimension button by selecting "Ecommerce" and then "Affiliation". This will show you which affiliates were responsible for which sales, but what if you want to segment affiliate traffic and/or conversion goals from other traffic sources?

The answer is tagging your affiliate links with campaign parameters that will show up inside your Google Analytics reports. From inside your Infusionsoft account, go to "CRM" and then click on "Referral Partners". From the top menu, hover over "Referral Partners" and click on "Refferal Tracking Links". Under "Web page" you see all the links we're going to update. You can use our Google Analytics URL Builder Tool or edit the links by hand if you're comfortable with code. Instructions for each option are listed further down on this page.

Once this is done, the additional data is viewable from inside your Google Analytics account in two ways. Go to the "Reporting" tab. Click on "Acquisition" inside the left sidebar, and then on "Campaigns", and then "All Campaigns", and then look for "affiliate". Optionally, you can add the additional affiliate data to any report from the Secondary dimension button by selecting the various options under "Acquisition". This will show you what things affiliate traffic was responsible for.

Using the Google Analytics URL Builder

From the Google Analytics URL Builder, paste the link from Infusionsoft into "Target URL". Set "Campaign Source" to "infusionsoft". Set "Campaign Medium" to "pps" (the pay-per-sale type). Set "Campaign Name" to "affiliate". Leave "Campaign Content" blank. Click the "Create" button. Test the link, and then paste it into Infusionsoft, replacing the original link. Then save your changes inside Infusionsoft.

Edit Links by Hand

Since we're adding the same code to the end of all links, it's relatively easy to do this by hand. As an example, if your link is http://www.example.com/some-location you will add ?utm_source=infusionsoft&utm_medium=pps&utm_campaign=affiliate to the end, making the final link http://www.example.com/some-location?utm_source=infusionsoft&utm_medium=pps&utm_campaign=affiliate

The one gotcha is if your link already has variables in it. As an example, that would look like http://www.example.com/some-location?var=something. Just look for that ? in the link, and if it's there, paste this code onto the end &utm_source=infusionsoft&utm_medium=pps&utm_campaign=affiliate. So, this http://www.example.com/some-location?var=something becomes this http://www.example.com/some-location?var=something&utm_source=infusionsoft&utm_medium=pps&utm_campaign=affiliate. Basically the rule is one ? and only one ? per line of code. Test the link, and then paste it into Infusionsoft, replacing the original link. Then save your changes inside Infusionsoft.

Related Resources

Google Analytics URL Builder

Building URLs for Infusiosoft Email Campaigns and Newsletters

Article Feedback

If this article is incorrect or outdated, or omits critical information, please use our contact us form and let us know.