It is possible to create a simple affiliate mechanism using Matomo. For this system to work, you give your affiliate a special URL parameter they use to link to your website. Then you can track all new customers and revenue generated by each of your affiliates using Matomo.
Track users and customers with an affiliate URL parameter
When your affiliates send to you new leads, they would append to their URL linking to you a new parameter:
&pk_cpn=Affiliate-XYZ. When users will click a link to your website URL and including this
pk_cpn parameter (which is an alias of
pk_campaign), then the user will be tracked as coming from a Campaign named
Reporting affiliate conversions and revenue
To track conversions and revenue:
- First you create a goal and set a Revenue for your goal which tracks the actual revenue of each conversion.
- Then in Matomo > Goals, you would be able to see how many visitors came from each affiliate by looking at the “Conversions” and “Revenue” metrics in your Campaign names report for your goal.
- You are then able to use this report to calculate what revenue to pay your affiliates.
Instead of creating a Goal, you can use Ecommerce and see how many products and total sales each affiliate has generated.
Accurately credit your affiliates who first brought you the leads
In most cases your affiliates are the ones who first refer new leads to you. But by default Matomo credits the “last seen referrer” which will cause many affiliate conversions to be missed. You therefore need to manually enable the “First seen referrer” attribution in your website, to accurately attribute your affiliates who first brought you customers. Read our First seen referrer attribution FAQ.
Using Matomo as a simple affiliate system has some known limitation:
- If customers weren’t tracked by Matomo for some reasons (using ad-blockers, opted-out, or other reasons), then the goal conversion and the revenue wouldn’t be tracked at all, and therefore wouldn’t be attributed correctly to the affiliate.