| 1 |
<?php |
| 2 |
/** |
| 3 |
* Plugin Name: Plausible Analytics |
| 4 |
* Plugin URI: https://plausible.io |
| 5 |
* Description: Simple and privacy-friendly alternative to Google Analytics. |
| 6 |
* Author: Plausible.io |
| 7 |
* Author URI: https://plausible.io |
| 8 |
* Version: 2.6.1 |
| 9 |
* Text Domain: plausible-analytics |
| 10 |
* Domain Path: /languages |
| 11 |
*/ |
| 12 |
|
| 13 |
namespace Plausible\Analytics\WP; |
| 14 |
|
| 15 |
// Exit if accessed directly. |
| 16 |
if ( ! defined( 'ABSPATH' ) ) { |
| 17 |
exit; |
| 18 |
} |
| 19 |
|
| 20 |
define( 'PLAUSIBLE_ANALYTICS_PLUGIN_FILE', __FILE__ ); |
| 21 |
define( 'PLAUSIBLE_ANALYTICS_PLUGIN_BASENAME', plugin_basename( PLAUSIBLE_ANALYTICS_PLUGIN_FILE ) ); |
| 22 |
define( 'PLAUSIBLE_ANALYTICS_PLUGIN_DIR', plugin_dir_path( PLAUSIBLE_ANALYTICS_PLUGIN_FILE ) ); |
| 23 |
define( 'PLAUSIBLE_ANALYTICS_PLUGIN_URL', plugin_dir_url( PLAUSIBLE_ANALYTICS_PLUGIN_FILE ) ); |
| 24 |
|
| 25 |
// Automatically loads files used throughout the plugin. |
| 26 |
require_once PLAUSIBLE_ANALYTICS_PLUGIN_DIR . 'vendor/autoload.php'; |
| 27 |
|
| 28 |
// Initialize the plugin. |
| 29 |
$plugin = new Plugin(); |
| 30 |
$plugin->register(); |
| 31 |
|