| 1 |
<?php |
| 2 |
/** |
| 3 |
* Main plugin file. |
| 4 |
* |
| 5 |
* @link https://stape.io |
| 6 |
* @since 2.0.0 |
| 7 |
* @package GTM_Server_Side |
| 8 |
* |
| 9 |
* @wordpress-plugin |
| 10 |
* Plugin Name: Stape Conversion Tracking |
| 11 |
* Plugin URI: https://wordpress.org/plugins/gtm-server-side/ |
| 12 |
* Description: Enhance conversion tracking by implementing server-side tagging using server Google Tag Manager container. Effortlessly configure data layer events in web GTM, send webhooks, set up custom loader, and extend cookie lifetime. |
| 13 |
* Version: 2.3.8 |
| 14 |
* Author: Stape |
| 15 |
* Author URI: https://stape.io |
| 16 |
* License: GPL-2.0+ |
| 17 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt |
| 18 |
* Text Domain: gtm-server-side |
| 19 |
* Domain Path: /languages |
| 20 |
*/ |
| 21 |
|
| 22 |
defined( 'ABSPATH' ) || exit; |
| 23 |
|
| 24 |
/** |
| 25 |
* Bootstrap. |
| 26 |
*/ |
| 27 |
require plugin_dir_path( __FILE__ ) . 'bootstrap.php'; |
| 28 |
|
| 29 |
register_activation_hook( __FILE__, array( GTM_Server_Side_Plugin_Activate::class, 'instance' ) ); |
| 30 |
register_deactivation_hook( __FILE__, array( GTM_Server_Side_Plugin_Deactivate::class, 'instance' ) ); |
| 31 |
|
| 32 |
add_action( 'init', array( GTM_Server_Side_Plugin_Upgrade::class, 'instance' ) ); |
| 33 |
add_action( 'gtm_server_side', array( GTM_Server_Side_I18n::class, 'instance' ) ); |
| 34 |
add_action( 'gtm_server_side', array( GTM_Server_Side_WC_Order::class, 'instance' ) ); |
| 35 |
add_action( 'gtm_server_side', array( GTM_Server_Side_Same_Origin_Proxy::class, 'instance' ) ); |
| 36 |
add_action( 'gtm_server_side', array( GTM_Server_Side_Customer_Loader_Cron::class, 'instance' ) ); |
| 37 |
add_action( 'gtm_server_side', array( GTM_Server_Side_Data_Manager_Ingest_Cron::class, 'instance' ) ); |
| 38 |
add_action( 'gtm_server_side', array( GTM_Server_Side_Webhook_Purchase::class, 'instance' ) ); |
| 39 |
add_action( 'gtm_server_side', array( GTM_Server_Side_Webhook_Processing::class, 'instance' ) ); |
| 40 |
add_action( 'gtm_server_side', array( GTM_Server_Side_Webhook_Completed::class, 'instance' ) ); |
| 41 |
add_action( 'gtm_server_side', array( GTM_Server_Side_Webhook_Refund::class, 'instance' ) ); |
| 42 |
add_action( 'gtm_server_side', array( GTM_Server_Side_API_Data_Manager_Ingest::class, 'instance' ) ); |
| 43 |
add_action( 'gtm_server_side', array( GTM_Server_Side_Frontend_Ajax::class, 'instance' ) ); |
| 44 |
add_action( 'gtm_server_side_admin', array( GTM_Server_Side_Admin_Settings::class, 'instance' ) ); |
| 45 |
add_action( 'gtm_server_side_admin', array( GTM_Server_Side_Admin_Ajax::class, 'instance' ) ); |
| 46 |
add_action( 'gtm_server_side_admin', array( GTM_Server_Side_Admin_Assets::class, 'instance' ) ); |
| 47 |
add_action( 'gtm_server_side_admin', array( GTM_Server_Side_Customer_Loader_Options_Watcher::class, 'instance' ) ); |
| 48 |
add_action( 'gtm_server_side_frontend', array( GTM_Server_Side_Frontend_Assets::class, 'instance' ) ); |
| 49 |
add_action( 'gtm_server_side_frontend', array( GTM_Server_Side_Tracking_Code::class, 'instance' ) ); |
| 50 |
add_action( 'gtm_server_side_frontend', array( GTM_Server_Side_Tracking_Gtm4wp::class, 'instance' ) ); |
| 51 |
add_action( 'gtm_server_side_frontend', array( GTM_Server_Side_Event_Home::class, 'instance' ) ); |
| 52 |
// phpcs:ignore: Squiz.PHP.CommentedOutCode.Found, Squiz.Commenting.InlineComment.InvalidEndChar |
| 53 |
// add_action( 'gtm_server_side_frontend', array( GTM_Server_Side_Event_Login::class, 'instance' ) ); |
| 54 |
add_action( 'gtm_server_side_frontend', array( GTM_Server_Side_Event_Register::class, 'instance' ) ); |
| 55 |
add_action( 'gtm_server_side_frontend', array( GTM_Server_Side_Event_ViewItem::class, 'instance' ) ); |
| 56 |
add_action( 'gtm_server_side_frontend', array( GTM_Server_Side_Event_ViewItemList::class, 'instance' ) ); |
| 57 |
add_action( 'gtm_server_side_frontend', array( GTM_Server_Side_Event_ViewCart::class, 'instance' ) ); |
| 58 |
add_action( 'gtm_server_side_frontend', array( GTM_Server_Side_Event_BeginCheckout::class, 'instance' ) ); |
| 59 |
add_action( 'gtm_server_side_frontend', array( GTM_Server_Side_Event_Purchase::class, 'instance' ) ); |
| 60 |
add_action( 'gtm_server_side_frontend', array( GTM_Server_Side_Event_AddToCart::class, 'instance' ) ); |
| 61 |
|