PluginProbe
Easy Elements for Elementor – Addons & Website Templates / 1.2.8
Easy Elements for Elementor – Addons & Website Templates v1.2.8
1.5.3 1.5.2 1.5.1 1.5.0 1.4.9 1.4.6 1.4.7 1.4.8 1.4.5 1.4.4 1.4.3 1.2.7 1.2.8 1.2.9 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.7 1.3.8 1.3.9 1.4.0 All 47 releases
easy-elements / includes / Tracking / Appsero_Tracker.php

Appsero_Tracker.php in Easy Elements for Elementor – Addons & Website Templates 1.2.8, at includes/Tracking/Appsero_Tracker.php

47 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 namespace Easyel\EasyElements\Tracking;
3
4 use Appsero\Client;
5
6 if ( ! defined( 'ABSPATH' ) ) exit;
7
8 class Appsero_Tracker {
9
10 private static $instance = null;
11 private $client;
12
13 public static function instance() {
14 if ( null === self::$instance ) {
15 self::$instance = new self();
16 }
17 return self::$instance;
18 }
19
20 private function __construct() {
21 $this->init();
22 }
23
24 private function init() {
25
26 // Appsero Client init
27 $this->client = new Client(
28 '8c8586eb-5fc7-493d-97f3-87f342fa8a09',
29 'Easy Elements for Elementor',
30 EASYELEMENTS_FILE
31 );
32
33 $this->client->set_textdomain( 'easy-elements' );
34
35 $this->client->insights()
36 ->add_plugin_data()
37 ->add_extra( $this->extra_data() )
38 ->init();
39 }
40
41 private function extra_data() {
42 return [
43 'is_pro_active' => defined( 'EASYELEMENTS_PRO_VER' ) ? 'Yes' : 'No',
44 'pro_version' => defined( 'EASYELEMENTS_PRO_VER' ) ? EASYELEMENTS_PRO_VER : '',
45 ];
46 }
47 }