Freemius is a great app for selling WordPress products, it provides licenses management, customers management, refunds, coupons, automatic updates, and so much more.
However, it provides sales stats for individual products only.
I wanted to see the total sales from all my products , average daily income , gross sales by plugin, and all time sales.
So I created a simple shortcode that displays all those stats using the Freemius REST API.
The reports were created for displaying plugins data, they haven´t been tested with themes.
This plugin is brought to you by the developers of WP Sheet Editor, a plugin for editing Posts, Pages, Products, Custom Post Types, and Users in a spreadsheet.
Download WP Sheet Editor for free
Setup steps
- Activate the plugin
- Get your API credentials from this page
- Add your API credentials in your wp-config.php file:
define('VG_FREEMIUS_REPORTS_DEV_ID', '111'); define('VG_FREEMIUS_REPORTS_PUBLIC_kEY', 'pk_1111111111111111111'); define('VG_FREEMIUS_REPORTS_PRIVATE_KEY', 'sk_111111111111111'); define('WP_MEMORY_LIMIT', '400M');
WP_MEMORY_LIMIT is required in case you get php errors.
- Add this shortcode to a wp page: [vg_freemius_stats]
IMPORTANT
If you want the stats to be private , you can add the shortcode to a "private page", or you can create an admin page (in wp-admin) and use the shortcode there.
In my personal case, I created my own dashboard in the frontend in a private website.