Skip to main content

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

Project description

License: LGPL-3

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

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page