If you would like your Infusionsoft affiliate links to look like this:
https://yourdomain.com/refer/?w=ABC&p=123&a=XYZ
Create a directory on your website (for the example above, refer
). In that directory, copy the code provided in this gist into a file called index.php
.
Make sure you change the app_name
and default_url
variables in the script to reflect your own Infusionsoft application. So, for example, if your website is https://mywebsite.com
and you log into Infusionsoft at https://xyz123.infusionsoft.com
, then the beginning of this script should look like:
<?php
// What is the Infusionsoft app name (the part that comes before '.infusionsoft.com')
$app_name = 'xyz123';
// Where should this script redirect if no affiliate variables are set?
$default_url = 'https://mywebsite.com';