Don’t struggle with trying to install and set this up yourself, let us do it for you.
2. WP-Affiliate Platform
The WordPress Affiliate Platform is an easy to use WordPress plugin for affiliate recruitment, management and tracking that can be used on any WordPress blog or site. This plugin lets you run your own affiliate campaign/program and allows you to reward (pay commission) your affiliates for referring sales.
The admin can configure banners, links and creatives which the affiliates can use on their site to drive traffic to your site. All the clicks, leads, sales etc are tracked by this plugin.