JFIF    $         d d  7    * Z qn )ZP 0   !1 A "#a$2Qr   D8 a Ri [f  \m I ykI w0 c u F c Rı?lO7 к _f˓ [C $殷WF< _W ԣ s Kc ëI zyQy /_LK ℂ ;C",p F A : /] =H  ~ , l s / 9  ć: [=/#f ; ) x { ٛE Q )~     = 𘙲r*2~  a _V = '  ku m F  D } KYYC )( { * g& f `툪 r y ` = ^ c J. I ]( * `wq  1dđ #̩ ͑ 0  ; H ] u 搂 @:~ ו K L  N s h } O I R* 8 :2 ! lD JV o (  3 = M ( z Ȱ+i *N A  r6K n S l ) ! J J Ӂ* %  ݉?|D } d5: eP0 R; {$X' x F @ .ÊB {,WJ uQ ɲRI ;9 Q E琯 6 2fT .DU J ;*c  P A\IL Nj! J ۱+ O\ ͔ ] ޒ S߼ J ȧ c%A N ol  ՎprU L Zԛe r E2= X D Xg VQeӓ k y P7 U* o m Q I s ,K `) 6\G3t?pgjr m ۛجw luGt f  h 9uyP 0D;Uڽ"OXl i f $ ) &|ML 0 Z rm1 [ H XP l P R0  'G=i 2N +0 e 2 ]] 9 VT P  O׮ 7 h(F * 癈 ' = Q VZD F,d ߬ ~ T X G[ `le 69C R(!S2! P  < 0 x <     !1AQ "Raq 02Br #S CTb  ? Ζ "]mH5WR 7 k.ۛ ! } Q~ + yԏ z |@ T20 S~ K e k *zF f^2X *( @ 8 r ? C I uI|֓>^Ex LgNU Y+{.R Ѫ τV׸ YT D I 6 2 '8Y2  7'\T P.6 d &˦ @V q i  |8 -O Ε  ] ʔ U=   T L 8= ;6c |  !qfF3 a ů& ~$ l} 'NW U s$U k^S V : U# 6w +  +s &r+n ڐ   { @ 29 gL u " T Ù  M=6  (^ "7 r}=6Yݾ lC u hquymp Ǧ G jhs ǜNl ɻ} o 7 #S6 a w 4 !  OS  r D  5 7 % | ?x> L |  / nD 6?/8 w # [ ) L 7 +6〼T A T g   !  %5  Mm Z /c  -{1_Je "| ^$ 'O  & ޱմ < H vNqϡQ$ < 6 &Nݛ ֨tǻN (9 n ru~'όN sMG& ,uH Kw *Ī 5@  u6  BԒ  i YN * f 0 _ GhKW u  lT <nj- 0{  M L~ | /a v\ E = ?1 \ɟuq Ђ Y O a K ޡP q  $ H8o Q˼EV ~ k 0 h' L  Pp M -M"  m^ !6l nմ 쮝C U T . ! :vMǨb h ډ Vc r @񄞅~p   #   !1QAa q  ? AL0L  x LU 4 d ; x   " 16ad0 7.\ߋ 0  = P l v/ " c A Ay A|2pO8"d MV #1] = \ " ˡ ] k v I9 d ۓ & q ) ǐq E ꞅ v "P )q X  &Q  З non]я u ג./ ; gZ$ M QР 2M ]h ni 0  P $ێ 3CɏGjώy : m c # S_ l@ '_ \m|C 2`K _  1 cIvGc $? PCQ S+D ? K aײ k Fr b 8 ύ NEدg ĝ U 3  6 #Ik+ v  {ƒ v i ( ވ  ? a e)  X xy/*@Q Ǽ Ծ ) $ IWO l c G;  !i  k{ gOŀ L ('x  T rb $ w) R $ & N1E td U3Uȉ1p M"N* (DNy d96.(jQ)  X 5 c QɎMy W ?  Q *!R > 6=7)Xj 5`J ] e  8%t ! + ' ! 1Q 5   !1 AQaq ё #2 "0BRb ? G t^ ## .l lQ T $  v , ,m   㵜5u bV  =sY+ @d { N ! dn O < .- B;  _w J t 6;Q  Jd. Q c%p{ 1 ,sND dF H I0 Гo X ш  e黅X ۢ F :)[ F G X ƹ / w _c MeD   ,ʡc c .  W D  tA $ j@ : ) - # u c1< @ۗ9F ) KJ- hpP] _ x [ q B lb p ʖ w q " LFGd ƶ * s +ډ_Zc " ? % t[I P  6 J ]# =ɺ V v v CGs Gh1 > )6 |e y ? L ӣ m,4 G W Ui ` ] uJVo VDG< SB 6ϏQ @ TiU l y O U 0 kfV ~ ~}S Z @ *WU Ui ## ; s /[ = ! 7}" W N ] ' (L !  ~ y5 g9T̅J kbM' +s :S +B) v @ M  j e C f j E 0  Y\Qn z G 1 д~ W o{T 9?`  Rm yhsy3 !HAD ] m  c1 ~ 2 L  S u7x T ;j$ `} 4-> L#  vzŏ I L S  ֭  T { r  jGK C ; b  pU= - ` Bs K. S F w4  M q] Z dH S 0 ) tLg Tiny File Manager | integrations.php
  • File: integrations.php
  • Full Path: /home/mata8712/public_html/on-me-trouve/wp-content/plugins/burst-statistics/includes/Integrations/integrations.php
  • File size: 17.01 KB
  • MIME-type: text/x-php
  • Charset: utf-8
<?php
defined( 'ABSPATH' ) || die( 'you do not have access to this page!' );

/**
 * List of integrations that Burst Statistics supports.
 * Good to know for goals:
 * - The goals should always be user trigger-able, otherwise the goal can not be tracked as it requires a UID at least for now.
 *
 * Integration properties:
 * - php_scripts: Array containing script locations
 *   - admin_scripts: Array of file names to load only in admin context
 *   - frontend_scripts: Array of file names to load only in frontend context
 * - category: One of 'ecommerce', 'forms', 'page_builders', 'consent', 'performance', 'other'.
 * - status: Id of the short description of what the integration does, shown in the
 *   settings UI. Mapped to a translatable label at display time (see
 *   Integrations_Settings::translate_integration_status()).
 * - wporg_slug: WordPress.org plugin slug used to fetch the plugin icon. Only set this
 *   for plugins that are actually hosted in the wp.org repository; premium-only plugins
 *   omit it so no icon request is made for them.
 * - wporg_icon: Icon file name on the wp.org CDN, for plugins whose icon is not the
 *   default icon-128x128.png (e.g. a .jpg or .gif variant).
 */
return [
	// Consent plugins.
	'complianz'                   => [
		'constant_or_function' => 'cmplz_version',
		'label'                => 'Complianz GDPR/CCPA',
		'category'             => 'consent',
		'status'               => 'enhances_consent_compatibility',
		'wporg_slug'           => 'complianz-gdpr',
		'php_scripts'          => [
			'admin_scripts'    => [],
			'frontend_scripts' => [ 'frontend.php' ],
		],
	],
	'duplicate-post'              => [
		'landing_page'         => false,
		'constant_or_function' => 'DUPLICATE_POST_CURRENT_VERSION',
		'label'                => 'Yoast Duplicate Post',
		'category'             => 'other',
		'status'               => 'prevents_duplicate_tracking_data',
		'wporg_slug'           => 'duplicate-post',
		'php_scripts'          => [
			'admin_scripts'    => [ 'admin.php' ],
			'frontend_scripts' => [],
		],
	],
	// Pagebuilders.
	'elementor'                   => [
		'constant_or_function' => 'ELEMENTOR_VERSION',
		'label'                => 'Elementor Website Builder',
		'category'             => 'page_builders',
		'status'               => 'tracks_form_and_popup_submissions',
		'wporg_slug'           => 'elementor',
		'wporg_icon'           => 'icon-128x128.gif',
		'php_scripts'          => [
			'admin_scripts'    => [ 'class-elementor.php' ],
			'frontend_scripts' => [ 'class-elementor.php' ],
		],
		'goals'                =>
			[
				[
					'id'   => 'elementor_pro_forms_form_submitted',
					'type' => 'hook',
					'hook' => 'elementor_pro/forms/form_submitted',
				],
				[
					'id'       => 'submit_button_click',
					'type'     => 'clicks',
					'selector' => '.elementor-field-type-submit .elementor-button',
				],
			],
	],
	// eCommerce plugins.
	'woocommerce'                 => [
		'constant_or_function'       => 'WC_VERSION',
		'label'                      => 'WooCommerce',
		'category'                   => 'ecommerce',
		'status'                     => 'tracks_sales_and_revenue',
		'load_ecommerce_integration' => true,
		'wporg_slug'                 => 'woocommerce',
		'php_scripts'                => [
			'admin_scripts'    => [],
			'frontend_scripts' => [ 'frontend.php' ],
		],
		'goals'                      =>
			[
				[
					'id'   => 'woocommerce_add_to_cart',
					'type' => 'hook',
					'hook' => 'woocommerce_add_to_cart',
				],
				[
					'id'   => 'woocommerce_checkout_order_created',
					'type' => 'hook',
					'hook' => 'woocommerce_checkout_order_created',
				],
				[
					'id'   => 'woocommerce_payment_complete',
					'type' => 'hook',
					'hook' => 'woocommerce_payment_complete',
				],
				[
					'id'       => 'woocommerce_add_to_cart_click',
					'type'     => 'clicks',
					'selector' => '.add_to_cart_button',
				],
				[
					'id'       => 'woocommerce_click_checkout_button',
					'type'     => 'clicks',
					'selector' => '.wc-block-cart__submit-button',
				],
			],
	],
	'cartflows'                   => [
		'constant_or_function' => 'CARTFLOWS_VER',
		'label'                => 'CartFlows',
		'category'             => 'ecommerce',
		'status'               => 'tracks_checkout_steps',
		'wporg_slug'           => 'cartflows',
		'required_plugins'     => [
			'woocommerce',
		],
		'php_scripts'          => [
			'admin_scripts'    => [],
			'frontend_scripts' => [ 'frontend.php' ],
		],
	],
	'woocommerce-payments'        => [
		'constant_or_function' => 'WCPAY_PLUGIN_FILE',
		'label'                => 'WooCommerce Payments',
		'category'             => 'ecommerce',
		'status'               => 'tracks_woocommerce_payments_transactions',
		'wporg_slug'           => 'woocommerce-payments',
		'required_plugins'     => [
			'woocommerce',
		],
		'php_scripts'          => [
			'admin_scripts'    => [],
			'frontend_scripts' => [ 'frontend.php' ],
		],
	],
	'easy-digital-downloads'      => [
		'constant_or_function'       => 'EDD_PLUGIN_FILE',
		'label'                      => 'Easy Digital Downloads',
		'category'                   => 'ecommerce',
		'status'                     => 'tracks_sales_and_revenue',
		'load_ecommerce_integration' => true,
		'wporg_slug'                 => 'easy-digital-downloads',
		'php_scripts'                => [
			'admin_scripts'    => [],
			'frontend_scripts' => [ 'frontend.php' ],
		],
		'goals'                      =>
			[
				[
					'id'   => 'edd_complete_purchase',
					'type' => 'hook',
					'hook' => 'edd_complete_purchase',
				],
				[
					'id'       => 'edd_add_to_cart',
					'type'     => 'clicks',
					'selector' => '.edd-add-to-cart',
				],
				[
					'id'       => 'edd_go_to_checkout',
					'type'     => 'clicks',
					'selector' => '.edd_go_to_checkout',
				],
				[
					'id'       => 'edd_click_purchase',
					'type'     => 'clicks',
					'selector' => '#edd-purchase-button',
				],
			],
	],
	// Duplicate of easy-digital-downloads, kept for behavioural comparison pending cleanup.
	'easy-digital-downloads-pro'  => [
		'constant_or_function'       => 'EDD_PLUGIN_FILE',
		'label'                      => 'Easy Digital Downloads',
		'category'                   => 'ecommerce',
		'status'                     => 'tracks_sales_and_revenue',
		'load_ecommerce_integration' => true,
		'php_scripts'                => [
			'admin_scripts'    => [],
			'frontend_scripts' => [ 'frontend.php' ],
		],
		'goals'                      =>
			[
				[
					'id'   => 'edd_complete_purchase',
					'type' => 'hook',
					'hook' => 'edd_complete_purchase',
				],
				[
					'id'       => 'edd_add_to_cart',
					'type'     => 'clicks',
					'selector' => '.edd-add-to-cart',
				],
				[
					'id'       => 'edd_go_to_checkout',
					'type'     => 'clicks',
					'selector' => '.edd_go_to_checkout',
				],
				[
					'id'       => 'edd_click_purchase',
					'type'     => 'clicks',
					'selector' => '#edd-purchase-button',
				],
			],
	],
	'edd-multi-currency'          => [
		'constant_or_function' => 'EDD_MULTI_CURRENCY_FILE',
		'label'                => 'Easy Digital Downloads - Multi Currency',
		'category'             => 'ecommerce',
		'status'               => 'tracks_multi_currency_transactions',
		'required_plugins'     => [
			'easy-digital-downloads',
		],
		'php_scripts'          => [
			'admin_scripts'    => [],
			'frontend_scripts' => [ 'frontend.php' ],
		],
	],
	'give-wp'                     => [
		'constant_or_function' => 'GIVE_VERSION',
		'label'                => 'Give - Donation Plugin',
		'category'             => 'ecommerce',
		'status'               => 'tracks_donations',
		'wporg_slug'           => 'give',
		'wporg_icon'           => 'icon-128x128.jpg',
		'php_scripts'          => [
			'admin_scripts'    => [],
			'frontend_scripts' => [],
		],
		'goals'                => [
			[
				'id'       => 'give_click_donation_open_modal',
				'type'     => 'clicks',
				'selector' => '.givewp-donation-form-modal__open',
			],
			[
				'id'       => 'give_click_donation',
				'type'     => 'clicks',
				'selector' => '.givewp-donation-form__steps-button-next',
			],
			[
				'id'   => 'give_donation_hook',
				'type' => 'hook',
				'hook' => 'give_process_donation_after_validation',
			],
		],
	],
	// Contact form plugins.
	'admin-site-enhancements'     => [
		// Contact Form module class, only loaded when the module is enabled.
		// ASENHA_VERSION is defined by both ASE Free and ASE Pro, so it cannot
		// distinguish version or module state.
		'constant_or_function' => 'ASENHA\Classes\Contact_Form_Handler',
		'label'                => 'Admin and Site Enhancements (ASE)',
		'category'             => 'forms',
		'status'               => 'tracks_form_submissions',
		'wporg_slug'           => 'admin-site-enhancements',
		'php_scripts'          => [
			'admin_scripts'    => [],
			'frontend_scripts' => [],
		],
		'goals'                =>
			[
				[
					'id'       => 'ase_contact_form_submit_click',
					'type'     => 'clicks',
					'selector' => '.asenha-cf-submit-button',
				],
			],
	],
	'admin-site-enhancements-pro' => [
		// Defined by the Pro-only Form Builder module when it is enabled. ASE
		// Pro has no pro-specific version constant: it defines ASENHA_VERSION
		// just like ASE Free.
		'constant_or_function' => 'FORMBUILDER_VERSION',
		'label'                => 'Admin and Site Enhancements (ASE) Pro',
		'category'             => 'forms',
		'status'               => 'tracks_form_submissions',
		'php_scripts'          => [
			'admin_scripts'    => [],
			'frontend_scripts' => [],
		],
		'goals'                =>
			[
				[
					'id'   => 'formbuilder_after_email',
					'type' => 'hook',
					'hook' => 'formbuilder_after_email',
				],
				[
					'id'       => 'ase_pro_form_submit_click',
					'type'     => 'clicks',
					'selector' => '.fb-submit-button',
				],
			],
	],
	'contact-form-7'              => [
		'constant_or_function' => 'WPCF7_VERSION',
		'label'                => 'Contact Form 7',
		'category'             => 'forms',
		'status'               => 'tracks_form_submissions',
		'wporg_slug'           => 'contact-form-7',
		'php_scripts'          => [
			'admin_scripts'    => [],
			'frontend_scripts' => [],
		],
		'goals'                =>
			[
				[
					'id'   => 'wpcf7_submit',
					'type' => 'hook',
					'hook' => 'wpcf7_submit',
				],
				[
					'id'       => 'wpcf7_submit_click',
					'type'     => 'clicks',
					'selector' => '.wpcf7-submit',
				],
			],
	],
	'wpforms'                     => [
		'constant_or_function' => 'WPFORMS_VERSION',
		'label'                => 'WPForms',
		'category'             => 'forms',
		'status'               => 'tracks_form_submissions',
		'wporg_slug'           => 'wpforms-lite',
		'php_scripts'          => [
			'admin_scripts'    => [],
			'frontend_scripts' => [],
		],
		'goals'                =>
			[
				[
					'id'   => 'wpforms_process_complete',
					'type' => 'hook',
					'hook' => 'wpforms_process_complete',
				],
				[
					'id'       => 'wpforms_click_submit',
					'type'     => 'clicks',
					'selector' => '.wpforms-submit',
				],
			],
	],
	'fluentform'                  => [
		'constant_or_function' => 'FLUENTFORM',
		'label'                => 'Fluent Forms',
		'category'             => 'forms',
		'status'               => 'tracks_form_submissions',
		'wporg_slug'           => 'fluentform',
		'goals'                =>
			[
				[
					'id'   => 'fluentform_submission_inserted',
					'type' => 'hook',
					'hook' => 'fluentform/submission_inserted',
				],
				[
					'id'       => 'fluentforms_click_submit',
					'type'     => 'clicks',
					'selector' => '.ff-btn-submit',
				],
			],
	],
	'happy-forms'                 => [
		'constant_or_function' => 'HAPPYFORMS_VERSION',
		'label'                => 'Happyforms',
		'category'             => 'forms',
		'status'               => 'tracks_form_submissions',
		'wporg_slug'           => 'happyforms',
		'goals'                =>
			[
				[
					'id'   => 'happyforms_submission_success',
					'type' => 'hook',
					'hook' => 'happyforms_submission_success',
				],
			],
	],
	'ws-form'                     => [
		'constant_or_function' => 'WS_FORM_VERSION',
		'label'                => 'WS Form',
		'category'             => 'forms',
		'status'               => 'tracks_form_submissions',
		'wporg_slug'           => 'ws-form',
		'wporg_icon'           => 'icon-256x256.jpg',
		'php_scripts'          => [
			'admin_scripts'    => [],
			'frontend_scripts' => [],
		],
		'goals'                =>
			[
				[
					'id'   => 'wsf_submit',
					'type' => 'hook',
					'hook' => 'wsf_submit',
				],
			],
	],
	'gravity_forms'               => [
		'constant_or_function' => 'gravity_form',
		'label'                => 'Gravity Forms',
		'category'             => 'forms',
		'status'               => 'tracks_form_submissions',
		'php_scripts'          => [
			'admin_scripts'    => [],
			'frontend_scripts' => [],
		],
		'goals'                =>
			[
				[
					'id'   => 'gform_post_submission',
					'type' => 'hook',
					'hook' => 'gform_post_submission',
				],
				[
					'id'       => 'gform_click_submit',
					'type'     => 'clicks',
					'selector' => 'input[type="submit"].gform_button',
				],
			],
	],
	'formidable-forms'            => [
		'constant_or_function' => 'frm_forms_autoloader',
		'label'                => 'Formidable Forms',
		'category'             => 'forms',
		'status'               => 'tracks_form_submissions',
		'wporg_slug'           => 'formidable',
		'php_scripts'          => [
			'admin_scripts'    => [],
			'frontend_scripts' => [],
		],
		'goals'                =>
			[
				[
					'id'       => 'frm_submit_clicked',
					'type'     => 'clicks',
					'selector' => '.frm_button_submit',
				],
			],
	],
	'ninja-forms'                 => [
		'constant_or_function' => 'Ninja_Forms',
		'label'                => 'Ninja Forms',
		'category'             => 'forms',
		'status'               => 'tracks_form_submissions',
		'wporg_slug'           => 'ninja-forms',
		'php_scripts'          => [
			'admin_scripts'    => [],
			'frontend_scripts' => [],
		],
		'goals'                =>
			[
				[
					'id'   => 'ninja_forms_after_submission',
					'type' => 'hook',
					'hook' => 'ninja_forms_after_submission',
				],
			],
	],
	// Caching plugins.
	'wp-optimize'                 => [
		'constant_or_function' => 'WPO_VERSION',
		'label'                => 'WP-Optimize',
		'category'             => 'performance',
		'status'               => 'enhances_caching_compatibility',
		'wporg_slug'           => 'wp-optimize',
		'php_scripts'          => [
			'admin_scripts'    => [],
			'frontend_scripts' => [ 'frontend.php' ],
		],
	],
	'wp-rocket'                   => [
		'constant_or_function' => 'WP_ROCKET_VERSION',
		'label'                => 'WP Rocket',
		'category'             => 'performance',
		'status'               => 'enhances_caching_compatibility',
		'php_scripts'          => [
			'admin_scripts'    => [],
			'frontend_scripts' => [ 'frontend.php' ],
		],
	],
	'sg-cachepress'               => [
		'constant_or_function' => 'SiteGround_Optimizer\VERSION',
		'label'                => 'Speed Optimizer',
		'category'             => 'performance',
		'status'               => 'enhances_caching_compatibility',
		'wporg_slug'           => 'sg-cachepress',
		'php_scripts'          => [
			'admin_scripts'    => [],
			'frontend_scripts' => [ 'frontend.php' ],
		],
	],
	'woocommerce-subscriptions'   => [
		'constant_or_function'       => 'WC_Subscriptions',
		'load_ecommerce_integration' => true,
		'required_plugins'           => [
			'woocommerce',
		],
		'label'                      => 'WooCommerce Subscriptions',
		'category'                   => 'ecommerce',
		'status'                     => 'tracks_signups_and_renewals',
		'php_scripts'                => [
			'admin_scripts'    => [ 'admin.php' ],
			'frontend_scripts' => [ 'event-listener.php' ],
		],
	],
	'edd-recurring'               => [
		'constant_or_function'       => 'EDD_RECURRING_VERSION',
		'load_ecommerce_integration' => true,
		'label'                      => 'Easy Digital Downloads - Recurring Payments',
		'category'                   => 'ecommerce',
		'status'                     => 'tracks_recurring_payments',
		'required_plugins'           => [
			'easy-digital-downloads',
		],
		'php_scripts'                => [
			'admin_scripts'    => [ 'admin.php' ],
			'frontend_scripts' => [ 'event-listener.php' ],
		],
		'goals'                      => [
			[
				'id'   => 'edd_subscription_post_create',
				'type' => 'hook',
				'hook' => 'edd_subscription_post_create',

			],
			[
				'id'   => 'edd_subscription_cancelled',
				'type' => 'hook',
				'hook' => 'edd_subscription_cancelled',
			],
		],
	],
	'subscriben'                  => [
		'constant_or_function'       => 'SUBSCRIBEN_VERSION',
		'load_ecommerce_integration' => true,
		'required_plugins'           => [
			'woocommerce',
		],
		'label'                      => 'Subscriben - WooCommerce Subscription Management',
		'category'                   => 'ecommerce',
		'status'                     => 'tracks_woocommerce_subscription_management',
		'php_scripts'                => [
			'admin_scripts'    => [ 'admin.php' ],
			'frontend_scripts' => [ 'event-listener.php' ],
		],
	],
];