Post Pay Counter and its addons come with some WP-CLI commands that can be executed from the terminal, especially for demanding tasks. These are useful when one wants to schedule them off peak hours, or when they are too heavy to execute through the web interface without timing out.
There is sufficient documentation in each of them: this is just a list with brief descriptions. Notice that commands that need to write files might need to be run as a different user (i.e. the one owning the plugin directory, most often
sudo su -u www-data wp [COMMAND].
Post Pay Counter WP-CLI commands
wp ppc stats: generates stats for given time range and author, particularly helpful to cache stats. Check out PPC caching features for details and examples.
wp ppc ga clear: clear current Analytics data and temp files.
wp ppc ga import: retrieves Analytics data for a given time range and stores it in temp files for further processing. This is equivalent to using the feature
Settings > Google Analytics Status > Update data. Does not clear data, so if you want to erase current data,
wp ppc ga clearis also needed beforehand.
An import run from WP-CLI expects to be processed from WP-CLI as well.
For massive Analytics imports, see here.
wp ppc ga process: processes pending Analytics rows, as it would happen from regular wp-admin refreshes when there are pending rows. No batching as in wp-admin though: it will instead process them all sequentially.
wp ppc ga incremental-update: performs the daily incremental Analytics data update, consisting of both gathering data and processing them.