Automatic affiliate activity checking

This feature is available in Post Affiliate Pro since version: 5.4.22.2
This feature requires Cronjob to be configured for your Post Affiliate Pro installation. (All our hosted accounts have Cronjob working by default)
It allows you to send automatic email notifications to inactive affiliates after defined number of days of inactivity and it also allows you to automatically decline or delete inactive affiliate accounts.

Activating the feature

To activate this feature open your merchant panel, navigate to Configuration->Features->Automatic affiliate activity checking feature and click activate button next to it to activate it.
(If you haven't purchased this feature yet you will see buy feature option instead of activate button.)

Configuring the feature
By default this feature doesn't do anything. You have to configure it first. After you activate the feature your merchant panel will be reloaded. Then navigate to configuration menu and you will see a new option in general settings section called Affiliates activity check. Click on it to open feature configuration menu.



Types of activity checking
Automatic affiliate activity checking feature is able to check two types of affiliate activity:

1. Check logins to affiliate panel -> This option checks the date of last login of affiliate to his affiliate panel. If registered affiliate never logged into his affiliate panel, date of affiliate account approval is used.

2. Check traffic from affiliate -> This option checks the date of last commission referred by an affiliate. Again if affiliate never referred anything, date of affiliate account approval is used.

You can also enable both these affiliate activity checks at the same time. With both options active, this feature will perform defined actions if conditions of login check OR conditions of traffic check are met.‚Äč Affiliate activity checks are automatically performed once per day via script on a background of your Post Affiliate Pro installation.

Available actions
After you activate one of the activity checking options you will see a new menu that allows you set up conditions and actions that should happen when conditions are met. There are two types of actions:

1. Send warning notification -> This action will send notification email to an affiliate after defined number of days of affiliate inactivity in field Days of inactivity warning.

2. Inactivity action -> This option can perform three actions after defined number of days of affiliate inactivity in field Max days of inactivity.
  1. Decline -> This action will set the status of affiliate account to Declined. (Declined affiliates are not able to login to their affiliate panel or earn commissions, merchant can reactivate affiliate account manually anytime directly in his merchant panel)
  2. Delete -> This action will permanently delete affiliate account from your affiliate program. (Deleting affiliate account will result in deletion of all his tracked clicks, sales and reports as well)
  3. No action -> This action wont do anything. It is supposed to be used only if you want to send warning notification emails to your affiliates without actually declining or deleting their affiliate account.
Decline and Delete actions will also send automatic email notification to affiliate informing him that his account was declined or deleted due to inactivity. Here is an example of feature settings:


Email notification templates
Content of all notification emails that are sent to affiliates via this feature can be modified.
To edit them open your merchant panel and navigate to configuration->email templates. In the list of templates you will be able to find email templates: 

Affiliate - Inactivity warning -> This template is used for emails sent by action Send warning notification.
Affiliate - Inactivity action -> This template is used for emails sent by inactivity actions Decline and Delete.


In addition to general email variables, these two email templates can also use some extra email variables:

{$daysOfInactivity} -> Represents number of days defined in feature conditions. This variable is available in both templates. 
{$action} -> Represents name of defined inactivity action. So it can have two values Declined and Deleted. This variable is available in both templates. 
{$remainDays} -> Represents number of days remaining until inactivity action is executed. This variable is available only in Affiliate - Inactivity warning template.