PluginProbe
WPFunnels – Funnel Builder for WooCommerce with Checkout & One Click Upsell / 2.8.16
WPFunnels – Funnel Builder for WooCommerce with Checkout & One Click Upsell v2.8.16
3.13.3 3.13.2 3.13.1 3.13.0 3.12.13 3.12.12 3.12.11 3.12.10 3.12.9 3.12.8 3.12.7 3.12.6 3.12.5 3.12.4 3.12.3 3.12.1 3.12.2 3.12.0 3.11.1 3.11.0 3.10.9 3.10.8 3.10.7 3.10.6 2.8.16 All 261 releases
wpfunnels / admin / modules / settings / views / gtm-settings.php

gtm-settings.php in WPFunnels – Funnel Builder for WooCommerce with Checkout & One Click Upsell 2.8.16, at admin/modules/settings/views/gtm-settings.php

57 lines 2.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * View GTM settings
4 *
5 * @package
6 */
7 ?>
8 <div class="wpfnl-box">
9 <!-- /field-wrapper -->
10 <?php if( is_plugin_active( 'wpfunnels-pro/wpfnl-pro.php' ) ){?>
11 <div class="wpfnl-field-wrapper analytics-stats">
12 <label><?php echo __('Track Events Using Google Tag Manager', 'wpfnl'); ?></label>
13 <div class="wpfnl-fields">
14 <span class="wpfnl-checkbox no-title">
15 <input type="checkbox" name="wpfnl-gtm-enable" id="gtm-enable" <?php if($this->gtm_settings['gtm_enable'] == 'on'){echo 'checked'; } ?>/>
16 <label for="gtm-enable"></label>
17 </span>
18 </div>
19 </div>
20 <div id="wpfnl-gtm">
21 <div class="wpfnl-field-wrapper gtm-snippet-head" id="gtm-snippet-head">
22 <label>
23 <?php echo __('GTM Container ID', 'wpfnl'); ?>
24 <span class="wpfnl-tooltip">
25 <?php require WPFNL_DIR . '/admin/partials/icons/question-tooltip-icon.php'; ?>
26 <p><?php echo __('In your Google Tab Manager Workspace, near the top of the window, you will find your container ID, formatted as “GTM-XXXXXX“.', 'wpfnl'); ?></p>
27 </span>
28 </label>
29 <div class="wpfnl-fields">
30 <input type="text" name="wpfnl-gtm-container-id" id="wpfnl-gtm-container-id" value="<?php echo isset($this->gtm_settings['gtm_container_id']) ? $this->gtm_settings['gtm_container_id']: '' ; ?>" />
31 </div>
32 </div>
33 <div class="wpfnl-field-wrapper analytics-stats">
34 <label>
35 <?php echo __('GTM Events', 'wpfnl'); ?>
36 <span class="wpfnl-tooltip">
37 <?php require WPFNL_DIR . '/admin/partials/icons/question-tooltip-icon.php'; ?>
38 <p><?php echo __('Choose what events to track in your funnels via Google Tag Manager.', 'wpfnl'); ?></p>
39 </span>
40 </label>
41 <div class="wpfnl-fields">
42 <?php foreach( $this->gtm_events as $key => $events ) { ?>
43 <span class="wpfnl-checkbox">
44 <input type="checkbox" name="wpfnl-gtm-events[]" id="<?php echo $key; ?>-gtm-events" data-role="<?php echo $key; ?>"
45 <?php if(isset($this->gtm_settings['gtm_events'][$key])){checked( $this->gtm_settings['gtm_events'][$key], 'true' );} ?>
46 />
47 <label for="<?php echo $key; ?>-gtm-events"><?php echo ucfirst($events); ?></label>
48 </span>
49 <?php } ?>
50 </div>
51 </div>
52 </div>
53
54 <?php } ?>
55
56 </div>
57 <!-- /settings-box -->