Download the PHP package automattic/jetpack-heartbeat without Composer
On this page you can find all versions of the php package automattic/jetpack-heartbeat. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Short Description This adds a cronjob that sends a batch of internal automattic stats to wp.com once a day
All versions of jetpack-heartbeat with dependencies
Informations about the package jetpack-heartbeat
Jetpack Heartbeat Package
Sends a daily batch of stats to WP.com using the A8C MC Stats package.
These are internal usage stats for Automattic, not visible to site owners.
1. Make sure Hearbeat is initialized:
2. Add your stats to the heartbeat
Add a filter callback:
In your callback, add the stats you want to the array with new key => value pairs where:
- key is the stat group name
- value is the stat name.
This will bump the stats for the 'my-plugin/active' stat.
And that's all!
Now your stats will be added to the batch of stats that are bumped once a day.