Primary

[affiliates_affiliate_stats]

Summarized statistics

This is an important tool for your affiliates, as it allows them to evaluate their performance as an affiliate in detail.

This shortcode shows a summary of stats including hits, visits, referrals and ratio as well as totals for accepted and closed referrals.

Affiliates can restrict the data shown to a certain date range by using the From and Until filters.

The shortcode in this form allows the use of the following attributes:

  • show_totals : “true” by default to display totals, set to “false” to not display totals
  • show_totals_accepted : “true” by default to include the totals for accepted referrals, set to “false” to exclude
  • show_totals_closed : “true” by default to include the totals for closed referrals, set to “false” to exclude
  • show_totals_pending : “false” by default excludes totals for pending referrals, i.e. referrals that need further review before accepting; set to “true” to display totals for these as well
  • show_totals_rejected : “false” by default excludes totals for referrals that have been rejected, set to “true” to include

Example:

[affiliates_affiliate_stats show_totals_accepted="false" /]

To show totals for closed (paid) referrals only, the above shortcode would be used.

Detailed referral overview

This feature is available in Affiliates Pro and Affiliates Enterprise.

Use the following shortcode for a detailed list of referrals:

[affiliates_affiliate_stats type="stats-referrals" /]

Affiliates can determine the number of results shown per page using the Results per page option. They are also able to restrict the data shown to a certain time period, by using the From and Until filters.

The shortcode in this form allows the use of the following attributes:

  • data : A comma separated list of data keys exposes the values recorded to the affiliate
  • show_amount : by default “true” displays the referral amount; to hide set this to “false”
  • show_currency_id : by default “true” displays the currency
  • show_post : shows the linked post title; “true” by default, set to “false” to disable
  • show_accepted : default is “true” includes accepted referrals; disable by setting to “false”
  • show_closed : default is “true” includes closed referrals; disable by setting to “false”
  • show_pending : default is “false” excludes accepted referrals; to include pending referrals in results set to “true”
  • show_rejected : default is “false” excludes rejected referrals; to include rejected referrals in results set to “true”

Example:

[affiliates_affiliate_stats type="stats-referrals" data="message" show_pending="true" /]

The above shortcode will include pending referrals in the results and display data that has been recorded using the message key.

Example:

[affiliates_affiliate_stats type="stats-referrals" data="user_login,user_email,first_name,last_name"/]

This will show details for referrals when the User Registration integration is enabled, including the username, email, first and last name.