Download the PHP package bitapps/wp-telemetry without Composer
On this page you can find all versions of the php package bitapps/wp-telemetry. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download bitapps/wp-telemetry
More information about bitapps/wp-telemetry
Files in bitapps/wp-telemetry
Package wp-telemetry
Short Description A simple telemetry library for WordPress.
License GPL-2.0-or-later
Homepage https://bitapps.pro
Informations about the package wp-telemetry
WP Telemetry
This package provides a simple way to add telemetry tracking to your WordPress plugin. It sends weekly reports to your server with information about the plugin's usage.
Usage
1. Installation
Install the package using composer:
2. Create a Telemetry Client
Initialize the telemetry client in your plugin's bootstrap file.
You are good to go! 👍️
The telemetry client will start sending data weekly
to your configured server url.
Configuration
Activate/Deactivate Telemetry Tracking
You can add a setting in your plugin settings page to allow users to opt-in or opt-out of telemetry tracking. You can use the following methods to change the opt-in/opt-out status.
⚡️ Opt In :
⚡️ Opt Out :
⚡️ Check if tracking is enabled
Tracking Report Modify
⚡️ Filter Hook to Add Additional Data :
This filter allows adding additional data to track information used by the plugin. You can modify the additional_data
array to include any custom data needed.
⚡️ Filter Hook To Modify Telemetry Data :
This filter allows modifying the telemetry data before sending it to the server. You can modify the $telemetry_data
array to include any custom data needed.
⚡️ Add plugin information in tracking data
Deactivation Feedback Survey
⚡️ Filter Hook to Add Deactivate Reasons :
This filter allows adding additional deactivate reasons to the feedback survey. You can modify the deactivate_reasons
array to include any custom reasons needed.