Affiliate Program

Create an e-commerce affiliate program for the tracking of referrals and conversions.

Technical Name:
  • Odoo Version

Terms and Conditions

Affiliate Program

This module allows for the creation of affiliates and the tracking of sales conversions generated by them.


To use this module, you must first create at least one affiliate (found in Sales/Affiliate Program).

Once an affiliate has been created, append one of the following to a compatible shop or product url (see below) to track the affiliate's conversions:

  • ?aff_ref=affiliate_id
  • ?aff_ref=affiliate_id&aff_key=custom_key

The "affiliate_id" is the ID displayed on the affiliate's record, e.g. "1".

The "custom_key" (optional) is a url-friendly string of your choice used to track a specific campaign, e.g. "anniversary_sale". Associated affiliate requests will be named after this key, if provided.

Example: /shop?aff_ref=1&aff_key=anniversary_sale

Compatible URLs

  • /shop
  • /shop/category/{category}
  • /shop/category/{category}/page/{page}
  • /shop/page/{page}
  • /shop/product/{product}
Try me on Runbot

Known issues / Roadmap

  • Evaluate usefulness of IP as a fallback affiliate request identifier

Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smash it by providing detailed and welcomed feedback.



  • Odoo Community Association: Icon.


Do not contact contributors directly about support or help with technical issues.


Odoo Community Association

This module is maintained by the OCA.

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

To contribute to this module, please visit

This is a preview of the recently viewed products by the user.
Once the user has seen at least one product this snippet will be visible.

Recently viewed Products