octolize/wp-octolize-tracker

1.5.2 2024-03-20 08:33 UTC

README

pipeline status coverage report Latest Stable Version Total Downloads License

Octolize Tracker

Requirements

PHP 7.0 or later.

Installation via Composer

In order to install the bindings via Composer run the following command:

composer require octolize/wp-octolize-tracker

Example usage

Initialize tracker in Octolize Plugin

$shops = $this->plugin_info->get_plugin_shops();
$shop_url = $shops[get_locale()] ?? ( $shops['default'] ?? 'https://octolize.com' );
$this->add_hookable( new TrackerInitializer(
	$this->plugin_info->get_plugin_file_name(),
	$this->plugin_info->get_plugin_slug(),
	$this->plugin_info->get_plugin_name(),
	$shop_url
) );

Author

Octolize