The official Discourse Affiliate plugin can help you monetize your Discourse forum. When users create links and other users click through those links and buy products from Amazon, they earn referral fees.
List of countries where the Amazon Associates program is operational
Amazon.co.uk Associates Program
Amazon.de Associates Program
Amazon.fr Associates Program
Amazon.it Associates Program
Amazon.ca Associates Program
Amazon.co.jp Associates Program
Amazon.es Associates Program
Amazon.in Associates Program
Amazon.br Associates Program
Amazon.com.mx Associates Program
Follow the instructions at Install a Plugin using
https://github.com/discourse/discourse-affiliate.git as the repository URL. After that, head over to
/admin/plugins and enable the Discourse Affiliate plugin.
How it works
This plugin strips out all referral links in posts and replaces them with your Amazon Associates ID or
ldlc.com Affiliate ID.
If you set the Site Setting affiliate amazon com to say
sams-shop, when people link ANYTHING from amazon.com the plugin will auto append
tag=sams-shop and strip out all the existing referral links.
So for example:
Would be auto converted to:
affiliate enabled: Enable the Affiliate plugin.
If you change this, you must rebake all posts with:
affiliate amazon ca: Your
amazon.ca (Canada) Associates ID. The links will be transformed only for all
amazon.com links using the value entered here.
affiliate amazon com: Your
amazon.com (United States) Associates ID. The links will be transformed only for all
amazon.ca links using the value entered here.
You will see many more settings such as affiliate amazon co jp, affiliate amazon com au, enter your Associate ID depending on which country’s program you have registered for.
affiliate ldlc com: Your ldlc.com Affiliate ID (without the #). The links will be transformed only for all
ldlc.com links using the value entered here.
bundle exec rake plugin:spec["discourse-affiliate"]