Download the PHP package kernl/power-analytics without Composer
On this page you can find all versions of the php package kernl/power-analytics. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download kernl/power-analytics
More information about kernl/power-analytics
Files in kernl/power-analytics
Download kernl/power-analytics
More information about kernl/power-analytics
Files in kernl/power-analytics
Vendor kernl
Package power-analytics
Short Description A PHP & WordPress library for sending analytics data to WP Power Analytics
License MIT
Homepage https://github.com/vital101/power-analytics-php-library
Package power-analytics
Short Description A PHP & WordPress library for sending analytics data to WP Power Analytics
License MIT
Homepage https://github.com/vital101/power-analytics-php-library
Please rate this library. Is it a good library?
Informations about the package power-analytics
WP Power Analytics WordPress Lib
This is the WP Power Analytics PHP library for integrating with WordPress.
The current version is 1.3.0
Usage
Initialize the library as early as possible in your plugin or theme code.
require plugin_dir_path( __FILE__ ) . "includes/power_analytics.php";
$powerAnalyticsUUID = "Your Power Analytics Product UUID";
$MyPlugin_PowerAnalytics = new WordPressPowerAnalytics(
$powerAnalyticsUUID,
__FILE__,
"your-plugin-slug"
);
$MyPlugin_PowerAnalytics->initialize();
Event Tracking
global $MyPlugin_PowerAnalytics;
$MyPlugin_PowerAnalytics->track($eventName, $eventValue);
Why the "MyPlugin_" in the instance variable?
It's likely that other plugins a user has installed will use WP Power Analytics. To avoid collisions, try to explicitly namespace your WordPressPowerAnalytics instance variable.
All versions of power-analytics with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.2.0
ext-json Version *
ext-json Version *
The package kernl/power-analytics contains the following files
Loading the files please wait ....