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 wants to schedule tasks off peak hours, or when tasks are too heavy to run them through the web interface without timing out.
There is sufficient documentation embedded 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].
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 Google 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 Google 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 Google Analytics data update, consisting of both gathering data and processing them.
wp ppc matomo clear
wp ppc matomo import
wp ppc matomo incremental-update
wp ppc matomo process
wp ppc plausible clear
wp ppc plausible import
wp ppc plausible incremental-update
wp ppc plausible process
wp ppc visits export: exports PPC visits data (from Google Analytics, Matomo, or Plausible).
wp ppc visits import: imports a previously exported PPC visits data file (into Google Analytics, Matomo, or Plausible).