Enhanced Ecommerce Google Analytics Plugin for WooCommerce - Version 4.0

Version Description

Download this release

Release Info

Developer Tatvic
Plugin Icon 128x128 Enhanced Ecommerce Google Analytics Plugin for WooCommerce
Version 4.0
Comparing to
See all releases

Code changes from version 3.1.3 to 4.0

Files changed (50) hide show
  1. admin/class-.txt +0 -276
  2. admin/class-enhanced-ecommerce-google-analytics-admin.php +47 -15
  3. admin/class-enhanced-ecommerce-google-analytics-settings.php +1 -1
  4. admin/class-tvc-admin-db-helper.php +1 -1
  5. admin/class-tvc-admin-helper.php +4 -2
  6. admin/css/custom-style.css +344 -9
  7. admin/css/enhanced-ecommerce-google-analytics-admin.css +41 -6
  8. admin/images/adwords.png +0 -0
  9. admin/images/check.png +0 -0
  10. admin/images/close.png +0 -0
  11. admin/images/cotlw.png +0 -0
  12. admin/images/discount.gif +0 -0
  13. admin/images/exclaimation.png +0 -0
  14. admin/images/facebook.jpg +0 -0
  15. admin/images/google_optimize.png +0 -0
  16. admin/images/icon/google-shopping.svg +1 -0
  17. admin/images/icon/woocommerce.svg +1 -0
  18. admin/images/logo.png +0 -0
  19. admin/images/m1.png +0 -0
  20. admin/images/m2.png +0 -0
  21. admin/images/rating.png +0 -0
  22. admin/images/ratings.png +0 -0
  23. admin/images/shopify_new.png +0 -0
  24. admin/images/tatvic_logo.png +0 -0
  25. admin/images/woo.png +0 -0
  26. admin/partials/about-plugin.php +0 -184
  27. admin/partials/enhanced-ecommerce-google-analytics-admin-display.php +20 -1
  28. admin/partials/general-fields.php +2 -3
  29. admin/partials/pricings.php +364 -0
  30. enhanced-ecommerce-google-analytics.php +2 -2
  31. includes/class-enhanced-ecommerce-google-analytics-activator.php +1 -1
  32. includes/class-enhanced-ecommerce-google-analytics-deactivator.php +1 -1
  33. includes/class-enhanced-ecommerce-google-analytics-i18n.php +1 -1
  34. includes/class-enhanced-ecommerce-google-analytics-loader.php +1 -1
  35. includes/class-enhanced-ecommerce-google-analytics.php +9 -5
  36. includes/data/class-tvc-ajax-file.php +224 -79
  37. includes/setup/CustomApi.php +36 -1
  38. includes/setup/ShoppingApi.php +60 -70
  39. includes/setup/account.php +180 -0
  40. includes/setup/add-campaign.php +33 -35
  41. includes/setup/class-tatvic-category-selector-element.php +11 -12
  42. includes/setup/class-tvc-product-sync-helper.php +780 -0
  43. includes/setup/google-shopping-feed-gaa-config.php +25 -357
  44. includes/setup/google-shopping-feed-shopping-campaigns.php +1 -1
  45. includes/setup/google-shopping-feed-sync-product.php +83 -426
  46. includes/setup/google-shopping-feed.php +2 -1
  47. public/class-enhanced-ecommerce-google-analytics-public-pro.php +76 -86
  48. public/class-enhanced-ecommerce-google-analytics-public.php +25 -6
  49. public/js/tvc-ee-google-analytics.js +81 -63
  50. readme.txt +67 -31
admin/class-.txt DELETED
@@ -1,276 +0,0 @@
1
- <?php
2
- if ( ! class_exists( 'TVC_Survey' ) ) {
3
-
4
- class TVC_Survey {
5
- public $api_url = '';
6
- public $name;
7
- public $plugin;
8
- public function __construct( $name = '', $plugin = '' ){
9
- $this->name = $name;
10
- $this->plugin = $plugin;
11
- if ( $this->is_dev_url() ) {
12
- return;
13
- }
14
-
15
- add_action( 'admin_print_scripts', array( $this, 'tvc_js' ), 20 );
16
- add_action( 'admin_print_scripts', array( $this, 'tvc_css' ) );
17
- add_action( 'admin_footer', array( $this, 'tvc_modal' ) );
18
- }
19
- public function is_dev_url() {
20
- $url = network_site_url( '/' );
21
- $is_local_url = false;
22
- // Trim it up
23
- $url = strtolower( trim( $url ) );
24
- if ( false === strpos( $url, 'http://' ) && false === strpos( $url, 'https://' ) ) {
25
- $url = 'http://' . $url;
26
- }
27
- $url_parts = parse_url( $url );
28
- $host = ! empty( $url_parts['host'] ) ? $url_parts['host'] : false;
29
- if ( ! empty( $url ) && ! empty( $host ) ) {
30
- if ( false !== ip2long( $host ) ) {
31
- if ( ! filter_var( $host, FILTER_VALIDATE_IP, FILTER_FLAG_NO_PRIV_RANGE | FILTER_FLAG_NO_RES_RANGE ) ) {
32
- $is_local_url = true;
33
- }
34
- } else if ( 'localhost' === $host ) {
35
- $is_local_url = true;
36
- }
37
-
38
- $tlds_to_check = array( '.dev', '.local', ':8888' );
39
- foreach ( $tlds_to_check as $tld ) {
40
- if ( false !== strpos( $host, $tld ) ) {
41
- $is_local_url = true;
42
- continue;
43
- }
44
-
45
- }
46
- if ( substr_count( $host, '.' ) > 1 ) {
47
- $subdomains_to_check = array( 'dev.', '*.staging.', 'beta.', 'test.' );
48
- foreach ( $subdomains_to_check as $subdomain ) {
49
- $subdomain = str_replace( '.', '(.)', $subdomain );
50
- $subdomain = str_replace( array( '*', '(.)' ), '(.*)', $subdomain );
51
- if ( preg_match( '/^(' . $subdomain . ')/', $host ) ) {
52
- $is_local_url = true;
53
- continue;
54
- }
55
- }
56
- }
57
- }
58
- return $is_local_url;
59
- }
60
- public function is_plugin_page() {
61
- $screen = function_exists( 'get_current_screen' ) ? get_current_screen() : false;
62
- if ( empty( $screen ) ) {
63
- return false;
64
- }
65
- return ( ! empty( $screen->id ) && in_array( $screen->id, array( 'plugins', 'plugins-network' ), true ) );
66
- }
67
- public function tvc_js() {
68
-
69
- if ( ! $this->is_plugin_page() ) {
70
- return;
71
- }
72
- ?>
73
- <script type="text/javascript">
74
- jQuery(function($){
75
- var $deactivateLink = $('#the-list').find('[data-slug="<?php echo $this->plugin; ?>"] span.deactivate a'),
76
- $overlay = $('#ee-survey-<?php echo $this->plugin; ?>'),
77
- $form = $overlay.find('form'),
78
- formOpen = false;
79
- // Plugin listing table deactivate link.
80
- $deactivateLink.on('click', function(event) {
81
- event.preventDefault();
82
- $overlay.css('display', 'table');
83
- formOpen = true;
84
- $form.find('.ee-survey-option:first-of-type input[type=radio]').focus();
85
- });
86
- // Survey radio option selected.
87
- $form.on('change', 'input[type=radio]', function(event) {
88
- event.preventDefault();
89
- $form.find('input[type=text], .error').hide();
90
- $form.find('.ee-survey-option').removeClass('selected');
91
- $(this).closest('.ee-survey-option').addClass('selected').find('input[type=text]').show();
92
- });
93
- // Survey Skip & Deactivate.
94
- $form.on('click', '.ee-survey-deactivate', function(event) {
95
- event.preventDefault();
96
- location.href = $deactivateLink.attr('href');
97
- });
98
- // Survey submit.
99
- $form.submit(function(event) {
100
- event.preventDefault();
101
- if (! $form.find('input[type=radio]:checked').val()) {
102
- $form.find('.ee-survey-footer').prepend('<span class="error"><?php echo esc_js( __( 'Please select an option', 'google-analytics-for-wordpress' ) ); ?></span>');
103
- return;
104
- }
105
- var data = {
106
- code: $form.find('.selected input[type=radio]').val(),
107
- reason: $form.find('.selected .ee-survey-option-reason').text(),
108
- details: $form.find('.selected input[type=text]').val(),
109
- site: '<?php echo esc_url( home_url() ); ?>',
110
- plugin: '<?php echo sanitize_key( $this->name ); ?>'
111
- }
112
- var submitSurvey = $.post('<?php echo $this->api_url; ?>', data);
113
- submitSurvey.always(function() {
114
- location.href = $deactivateLink.attr('href');
115
- });
116
- });
117
- // Exit key closes survey when open.
118
- $(document).keyup(function(event) {
119
- if (27 === event.keyCode && formOpen) {
120
- $overlay.hide();
121
- formOpen = false;
122
- $deactivateLink.focus();
123
- }
124
- });
125
- });
126
- </script>
127
- <?php
128
- }
129
- public function tvc_css() {
130
-
131
- if ( ! $this->is_plugin_page() ) {
132
- return;
133
- }
134
- ?>
135
- <style type="text/css">
136
- .ee-survey-modal {
137
- display: none;
138
- table-layout: fixed;
139
- position: fixed;
140
- z-index: 9999;
141
- width: 100%;
142
- height: 100%;
143
- text-align: center;
144
- font-size: 14px;
145
- top: 0;
146
- left: 0;
147
- background: rgba(0,0,0,0.8);
148
- }
149
- .ee-survey-wrap {
150
- display: table-cell;
151
- vertical-align: middle;
152
- }
153
- .ee-survey {
154
- background-color: #fff;
155
- max-width: 550px;
156
- margin: 0 auto;
157
- padding: 30px;
158
- text-align: left;
159
- }
160
- .ee-survey .error {
161
- display: block;
162
- color: red;
163
- margin: 0 0 10px 0;
164
- }
165
- .ee-survey-title {
166
- display: block;
167
- font-size: 18px;
168
- font-weight: 700;
169
- text-transform: uppercase;
170
- border-bottom: 1px solid #ddd;
171
- padding: 0 0 18px 0;
172
- margin: 0 0 18px 0;
173
- }
174
- .ee-survey-title span {
175
- color: #999;
176
- margin-right: 10px;
177
- }
178
- .ee-survey-desc {
179
- display: block;
180
- font-weight: 600;
181
- margin: 0 0 18px 0;
182
- }
183
- .ee-survey-option {
184
- margin: 0 0 10px 0;
185
- }
186
- .ee-survey-option-input {
187
- margin-right: 10px !important;
188
- }
189
- .ee-survey-option-details {
190
- display: none;
191
- width: 90%;
192
- margin: 10px 0 0 30px;
193
- }
194
- .ee-survey-footer {
195
- margin-top: 18px;
196
- }
197
- .ee-survey-deactivate {
198
- float: right;
199
- font-size: 13px;
200
- color: #ccc;
201
- text-decoration: none;
202
- padding-top: 7px;
203
- }
204
- </style>
205
- <?php
206
- }
207
- public function tvc_modal() {
208
-
209
- if ( ! $this->is_plugin_page() ) {
210
- return;
211
- }
212
-
213
- $options = array(
214
- 1 => array(
215
- "title" => esc_html__("No longer need the plugin","enhanced-e-commerce-for-woocommerce-store"),
216
- ),
217
- 2 => array(
218
- 'title' => esc_html__("Switching to a different plugin","enhanced-e-commerce-for-woocommerce-store"),
219
- 'details' => esc_html__( 'Please share which plugin', 'google-analytics-for-wordpress' ),
220
- ),
221
- 3 => array(
222
- 'title' => esc_html__("Couldn't get the plugin to work","enhanced-e-commerce-for-woocommerce-store"),
223
- ),
224
- 4 => array(
225
- 'title' => esc_html__("It's a temporary deactivation","enhanced-e-commerce-for-woocommerce-store"),
226
- ),
227
- 5 => array(
228
- 'title' => esc_html__("No longer need the plugin","enhanced-e-commerce-for-woocommerce-store"),
229
- 'details' => esc_html__( 'Please share the reason', 'google-analytics-for-wordpress' ),
230
- ),
231
- );
232
- ?>
233
- <div class="ee-survey-modal" id="ee-survey-<?php echo $this->plugin; ?>">
234
- <div class="ee-survey-wrap">
235
- <form class="ee-survey" method="post">
236
- <span class="ee-survey-title"><span class="dashicons dashicons-testimonial"></span><?php echo ' ' . esc_html__( 'Quick Feedback', 'google-analytics-for-wordpress' ); ?></span>
237
- <span class="ee-survey-desc">
238
- <?php
239
- // Translators: Placeholder for the plugin name.
240
- echo sprintf( esc_html__('If you have a moment, please share why you are deactivating %s:', 'google-analytics-for-wordpress' ), $this->name );
241
- ?>
242
- </span>
243
- <div class="ee-survey-options">
244
- <?php foreach ( $options as $id => $option ) : ?>
245
- <div class="ee-survey-option">
246
- <label for="ee-survey-option-<?php echo $this->plugin; ?>-<?php echo $id; ?>" class="ee-survey-option-label">
247
- <input id="ee-survey-option-<?php echo $this->plugin; ?>-<?php echo $id; ?>" class="ee-survey-option-input" type="radio" name="code" value="<?php echo $id; ?>" />
248
- <span class="ee-survey-option-reason"><?php echo $option['title']; ?></span>
249
- </label>
250
- <?php if ( ! empty( $option['details'] ) ) : ?>
251
- <input class="ee-survey-option-details" type="text" placeholder="<?php echo $option['details']; ?>" />
252
- <?php endif; ?>
253
- </div>
254
- <?php endforeach; ?>
255
- </div>
256
- <div class="ee-survey-footer">
257
- <button type="submit" class="ee-survey-submit button button-primary button-large">
258
- <?php
259
- // Translators: Adds an ampersand.
260
- echo sprintf( esc_html__('Submit %s Deactivate', 'google-analytics-for-wordpress' ), '&amp;' );
261
- ?>
262
- </button>
263
- <a href="#" class="ee-survey-deactivate">
264
- <?php
265
- // Translators: Adds an ampersand.
266
- echo sprintf( esc_html__('Skip %s Deactivate', 'google-analytics-for-wordpress' ), '&amp;' );
267
- ?>
268
- </a>
269
- </div>
270
- </form>
271
- </div>
272
- </div>
273
- <?php
274
- }
275
- }
276
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
admin/class-enhanced-ecommerce-google-analytics-admin.php CHANGED
@@ -18,7 +18,7 @@
18
  *
19
  * @package Enhanced_Ecommerce_Google_Analytics
20
  * @subpackage Enhanced_Ecommerce_Google_Analytics/admin
21
- * @author Chiranjiv Pathak <chiranjiv@tatvic.com>
22
  */
23
 
24
  class Enhanced_Ecommerce_Google_Analytics_Admin extends TVC_Admin_Helper {
@@ -53,12 +53,14 @@ class Enhanced_Ecommerce_Google_Analytics_Admin extends TVC_Admin_Helper {
53
  protected $ga_eeT;
54
  protected $site_url;
55
  protected $pro_plan_site;
 
56
  public function __construct($plugin_name, $version) {
57
  $this->plugin_name = $plugin_name;
58
  $this->version = $version;
59
  $this->url = $this->get_connect_url();
60
  $this->site_url = "admin.php?page=enhanced-ecommerce-google-analytics-admin-display&tab=";
61
  $this->pro_plan_site = $this->get_pro_plan_site();
 
62
  }
63
  public function tvc_admin_notice(){
64
  // add fixed message notification
@@ -66,11 +68,11 @@ class Enhanced_Ecommerce_Google_Analytics_Admin extends TVC_Admin_Helper {
66
  $ee_additional_data = $this->get_ee_additional_data();
67
  if(isset($ee_additional_data['dismissed_ee_adimin_notic_a']) && $ee_additional_data['dismissed_ee_adimin_notic_a'] == 1){
68
  }else{
69
- if(!$this->get_subscriptionId()){
70
- echo '<div class="notice notice-info is-dismissible" data-id="ee_adimin_notic_a">
71
- <p>Tatvic EE plugin is now fully compatible with Google Analytics 4. Also, explore the new features of Google Shopping and Dynamic remarketing to reach million of shoppers across Google and scale your eCommerce business faster. <a href="admin.php?page=enhanced-ecommerce-google-analytics-admin-display"><b><u>CONFIGURE NOW</u></b></a></p>
72
- </div>';
73
- }
74
  }
75
  if(isset($ee_additional_data['dismissed_ee_adimin_notic_b']) && $ee_additional_data['dismissed_ee_adimin_notic_b'] == 1){
76
  }else{
@@ -190,7 +192,15 @@ class Enhanced_Ecommerce_Google_Analytics_Admin extends TVC_Admin_Helper {
190
  *
191
  * @since 1.0.0
192
  */
193
- public function display_admin_page() {
 
 
 
 
 
 
 
 
194
  add_menu_page(
195
  'Tatvic EE Plugin', 'Tatvic EE Plugin', 'manage_options', "enhanced-ecommerce-google-analytics-admin-display", array($this, 'showPage'), plugin_dir_url(__FILE__) . 'images/tatvic_logo.png', 26
196
  );
@@ -211,10 +221,27 @@ class Enhanced_Ecommerce_Google_Analytics_Admin extends TVC_Admin_Helper {
211
  'enhanced-ecommerce-google-analytics-admin-display&tab=google_shopping_feed',
212
  array($this, 'showPage')
213
  );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
214
  }
215
- protected function create_head(){
216
- $google_detail = $this->get_ee_options_data();
217
- $googleDetail = "";
218
  if(isset($google_detail['setting'])){
219
  $googleDetail = $google_detail['setting'];
220
  }
@@ -243,12 +270,12 @@ class Enhanced_Ecommerce_Google_Analytics_Admin extends TVC_Admin_Helper {
243
  <div class="header-section">
244
  <?php if($plan_id == 1){?>
245
  <div class="top-section">
246
- <p>You are using free plugin. To unlock more features consider <a href="<?php echo $this->pro_plan_site; ?>" target="_blank" class="text-underline">upgrading to pro</a>..!!!</p>
247
  </div>
248
  <?php } ?>
249
  <nav class="navbar navbar-section">
250
  <a class="navbar-brand">
251
- <img src="https://d3rv1nmzvje89q.cloudfront.net/optimized_v5/2017/02/logo_optimize-1024x310.png"/>
252
  </a>
253
  <div class="form-inline">
254
  <span class="nav-btn">
@@ -270,12 +297,13 @@ class Enhanced_Ecommerce_Google_Analytics_Admin extends TVC_Admin_Helper {
270
  $html.="<li>
271
  <section class=\"tvc-msg plain\">
272
  <div class=\"tvc-msg_wrapper\">
273
- <div class=\"tvc-msg_content\">".$m_date . $m_title.$m_html."</div>
274
  <div class=\"tvc-msg_actions\">
275
  ".$m_link."
276
  <div class=\"tvc-dropdown\">
277
  <button type=\"button\" data-id=".$key." class=\"tvc-notification-button is-tertiary is-dismissible-notification\">Dismiss</button>
278
  </div>
 
279
  </div>
280
  </div>
281
  </section>
@@ -386,11 +414,15 @@ class Enhanced_Ecommerce_Google_Analytics_Admin extends TVC_Admin_Helper {
386
  return $msg_false;
387
  }
388
  }
389
- /*public function account(){
 
 
 
 
390
  require_once(ENHANCAD_PLUGIN_DIR . 'includes/setup/help-html.php');
391
  require_once(ENHANCAD_PLUGIN_DIR . 'includes/setup/account.php');
392
  new TVC_Account();
393
- }*/
394
  public function general_settings() {
395
  require_once(ENHANCAD_PLUGIN_DIR . 'includes/setup/help-html.php');
396
  require_once( 'partials/general-fields.php');
18
  *
19
  * @package Enhanced_Ecommerce_Google_Analytics
20
  * @subpackage Enhanced_Ecommerce_Google_Analytics/admin
21
+ * @author Tatvic
22
  */
23
 
24
  class Enhanced_Ecommerce_Google_Analytics_Admin extends TVC_Admin_Helper {
53
  protected $ga_eeT;
54
  protected $site_url;
55
  protected $pro_plan_site;
56
+ protected $google_detail;
57
  public function __construct($plugin_name, $version) {
58
  $this->plugin_name = $plugin_name;
59
  $this->version = $version;
60
  $this->url = $this->get_connect_url();
61
  $this->site_url = "admin.php?page=enhanced-ecommerce-google-analytics-admin-display&tab=";
62
  $this->pro_plan_site = $this->get_pro_plan_site();
63
+ $this->google_detail = $this->get_ee_options_data();
64
  }
65
  public function tvc_admin_notice(){
66
  // add fixed message notification
68
  $ee_additional_data = $this->get_ee_additional_data();
69
  if(isset($ee_additional_data['dismissed_ee_adimin_notic_a']) && $ee_additional_data['dismissed_ee_adimin_notic_a'] == 1){
70
  }else{
71
+ if(!$this->get_subscriptionId()){
72
+ echo '<div class="notice notice-info is-dismissible" data-id="ee_adimin_notic_a">
73
+ <p>Tatvic EE plugin is now fully compatible with Google Analytics 4. Also, explore the new features of Google Shopping and Dynamic remarketing to reach million of shoppers across Google and scale your eCommerce business faster. <a href="admin.php?page=enhanced-ecommerce-google-analytics-admin-display"><b><u>CONFIGURE NOW</u></b></a></p>
74
+ </div>';
75
+ }
76
  }
77
  if(isset($ee_additional_data['dismissed_ee_adimin_notic_b']) && $ee_additional_data['dismissed_ee_adimin_notic_b'] == 1){
78
  }else{
192
  *
193
  * @since 1.0.0
194
  */
195
+ public function display_admin_page() {
196
+ $google_detail = $this->google_detail;
197
+ $plan_id = 1;
198
+ if(isset($google_detail['setting'])){
199
+ $googleDetail = $google_detail['setting'];
200
+ if(isset($googleDetail->plan_id) && !in_array($googleDetail->plan_id, array("1"))){
201
+ $plan_id = $googleDetail->plan_id;
202
+ }
203
+ }
204
  add_menu_page(
205
  'Tatvic EE Plugin', 'Tatvic EE Plugin', 'manage_options', "enhanced-ecommerce-google-analytics-admin-display", array($this, 'showPage'), plugin_dir_url(__FILE__) . 'images/tatvic_logo.png', 26
206
  );
221
  'enhanced-ecommerce-google-analytics-admin-display&tab=google_shopping_feed',
222
  array($this, 'showPage')
223
  );
224
+ add_submenu_page(
225
+ 'enhanced-ecommerce-google-analytics-admin-display',
226
+ esc_html__('Account Summary', 'enhanced-ecommerce-google-analytics-admin-display'),
227
+ esc_html__('Account Summary', 'enhanced-ecommerce-google-analytics-admin-display'),
228
+ 'manage_options',
229
+ 'enhanced-ecommerce-google-analytics-admin-display&tab=account',
230
+ array($this, 'showPage')
231
+ );
232
+ if($plan_id == 1){
233
+ add_submenu_page(
234
+ 'enhanced-ecommerce-google-analytics-admin-display',
235
+ esc_html__('Free Vs Pro', 'enhanced-ecommerce-google-analytics-admin-display'),
236
+ esc_html__('Free Vs Pro', 'enhanced-ecommerce-google-analytics-admin-display'),
237
+ 'manage_options',
238
+ 'enhanced-ecommerce-google-analytics-admin-display&tab=pricings',
239
+ array($this, 'showPage')
240
+ );
241
+ }
242
  }
243
+ protected function create_head(){
244
+ $google_detail = $this->google_detail;
 
245
  if(isset($google_detail['setting'])){
246
  $googleDetail = $google_detail['setting'];
247
  }
270
  <div class="header-section">
271
  <?php if($plan_id == 1){?>
272
  <div class="top-section">
273
+ <p>You are using free plugin. <a href="<?php echo $this->pro_plan_site.'?utm_source=EE+Plugin+User+Interface&utm_medium=Top+Bar+upgrading+to+pro&utm_campaign=Upsell+at+Conversios'; ?>" target="_blank" class="text-underline">Try premium features at no cost for 1 Month..!!</a>..!!!</p>
274
  </div>
275
  <?php } ?>
276
  <nav class="navbar navbar-section">
277
  <a class="navbar-brand">
278
+ <img src="<?php echo ENHANCAD_PLUGIN_URL.'/admin/images/logo.png'; ?>"/>
279
  </a>
280
  <div class="form-inline">
281
  <span class="nav-btn">
297
  $html.="<li>
298
  <section class=\"tvc-msg plain\">
299
  <div class=\"tvc-msg_wrapper\">
300
+ <div class=\"tvc-msg_content\">".$m_title.$m_html."</div>
301
  <div class=\"tvc-msg_actions\">
302
  ".$m_link."
303
  <div class=\"tvc-dropdown\">
304
  <button type=\"button\" data-id=".$key." class=\"tvc-notification-button is-tertiary is-dismissible-notification\">Dismiss</button>
305
  </div>
306
+ ".$m_date."
307
  </div>
308
  </div>
309
  </section>
414
  return $msg_false;
415
  }
416
  }
417
+ public function pricings(){
418
+ require_once(ENHANCAD_PLUGIN_DIR . 'admin/partials/pricings.php');
419
+ new TVC_Pricings();
420
+ }
421
+ public function account(){
422
  require_once(ENHANCAD_PLUGIN_DIR . 'includes/setup/help-html.php');
423
  require_once(ENHANCAD_PLUGIN_DIR . 'includes/setup/account.php');
424
  new TVC_Account();
425
+ }
426
  public function general_settings() {
427
  require_once(ENHANCAD_PLUGIN_DIR . 'includes/setup/help-html.php');
428
  require_once( 'partials/general-fields.php');
admin/class-enhanced-ecommerce-google-analytics-settings.php CHANGED
@@ -17,7 +17,7 @@
17
  *
18
  * @package Enhanced_Ecommerce_Google_Analytics
19
  * @subpackage Enhanced_Ecommerce_Google_Analytics/admin
20
- * @author Chiranjiv Pathak <chiranjiv@tatvic.com>
21
  */
22
  if ( ! defined( 'ABSPATH' ) ) {
23
  exit();
17
  *
18
  * @package Enhanced_Ecommerce_Google_Analytics
19
  * @subpackage Enhanced_Ecommerce_Google_Analytics/admin
20
+ * @author Tatvic
21
  */
22
  if ( ! defined( 'ABSPATH' ) ) {
23
  exit();
admin/class-tvc-admin-db-helper.php CHANGED
@@ -139,7 +139,7 @@ if ( ! class_exists( 'TVC_Admin_DB_Helper' ) ) {
139
  global $wpdb;
140
  $query = $wpdb->prepare( 'SHOW TABLES LIKE %s', $wpdb->esc_like( $table ) );
141
  if ( $wpdb->get_var( $query ) === $table ) {
142
- $wpdb->query("TRUNCATE TABLE IF EXISTS ".$table);
143
  }
144
  }
145
  }
139
  global $wpdb;
140
  $query = $wpdb->prepare( 'SHOW TABLES LIKE %s', $wpdb->esc_like( $table ) );
141
  if ( $wpdb->get_var( $query ) === $table ) {
142
+ $wpdb->query("TRUNCATE TABLE ".$table);
143
  }
144
  }
145
  }
admin/class-tvc-admin-helper.php CHANGED
@@ -143,6 +143,7 @@ Class TVC_Admin_Helper{
143
  $syncProductStat = array("total" =>0, "approved" => 0, "disapproved" => 0, "pending" => 0 );
144
  }
145
  if(isset($googleDetail->google_ads_id) && $googleDetail->google_ads_id != ""){
 
146
  $shopping_api = new ShoppingApi();
147
  $campaigns_list_res = $shopping_api->getCampaigns();
148
  if(isset($campaigns_list_res->data) && isset($campaigns_list_res->status) && $campaigns_list_res->status == 200) {
@@ -937,7 +938,7 @@ Class TVC_Admin_Helper{
937
  );
938
  $nofifications["tvc_f_notif_2"] = array(
939
  "tittle"=>"Share your feedback.",
940
- "html"=>"Your feedback is very important to us. Please write about your experience and the the new feature requests here.",
941
  "link"=>"https://wordpress.org/support/plugin/enhanced-e-commerce-for-woocommerce-store/reviews/",
942
  "link_title"=>"Share Feedback",
943
  "link_type"=>"external"
@@ -1001,7 +1002,7 @@ Class TVC_Admin_Helper{
1001
  }
1002
 
1003
  public function get_pro_plan_site(){
1004
- return "https://codecanyon.net/item/actionable-google-analytics-for-woocommerce/9899552?utm_source=TatvicEE&utm_medium=DashboardBuyBottom&utm_campaign=WPlisting";
1005
  }
1006
 
1007
  public function is_ga_property(){
@@ -1021,6 +1022,7 @@ Class TVC_Admin_Helper{
1021
  return $this->plan_id;
1022
  }else{
1023
  $plan_id = 1;
 
1024
  if(isset($google_detail['setting'])){
1025
  $googleDetail = $google_detail['setting'];
1026
  if(isset($googleDetail->plan_id) && !in_array($googleDetail->plan_id, array("1"))){
143
  $syncProductStat = array("total" =>0, "approved" => 0, "disapproved" => 0, "pending" => 0 );
144
  }
145
  if(isset($googleDetail->google_ads_id) && $googleDetail->google_ads_id != ""){
146
+ $this->update_remarketing_snippets();
147
  $shopping_api = new ShoppingApi();
148
  $campaigns_list_res = $shopping_api->getCampaigns();
149
  if(isset($campaigns_list_res->data) && isset($campaigns_list_res->status) && $campaigns_list_res->status == 200) {
938
  );
939
  $nofifications["tvc_f_notif_2"] = array(
940
  "tittle"=>"Share your feedback.",
941
+ "html"=>"Your feedback is very important to us. Please write about your experience and the new feature requests here.",
942
  "link"=>"https://wordpress.org/support/plugin/enhanced-e-commerce-for-woocommerce-store/reviews/",
943
  "link_title"=>"Share Feedback",
944
  "link_type"=>"external"
1002
  }
1003
 
1004
  public function get_pro_plan_site(){
1005
+ return "https://conversios.io/pricings/";
1006
  }
1007
 
1008
  public function is_ga_property(){
1022
  return $this->plan_id;
1023
  }else{
1024
  $plan_id = 1;
1025
+ $google_detail = $this->get_ee_options_data();
1026
  if(isset($google_detail['setting'])){
1027
  $googleDetail = $google_detail['setting'];
1028
  if(isset($googleDetail->plan_id) && !in_array($googleDetail->plan_id, array("1"))){
admin/css/custom-style.css CHANGED
@@ -739,7 +739,8 @@ section {
739
  }
740
 
741
  .header-section .navbar-section {
742
- padding: 15px 0;
 
743
  margin-bottom: 0;
744
  }
745
 
@@ -748,8 +749,8 @@ section {
748
  }
749
 
750
  .header-section .navbar-section .navbar-brand img {
751
- max-width: 150px;
752
- max-height: 30px;
753
  }
754
 
755
  .header-section .navbar-section .nav-btn {
@@ -1451,20 +1452,21 @@ textarea.form-control, .select2.select2-container--default textarea.select2-sele
1451
 
1452
  .wizard-section.campaign-wizard .wizard-content .wizard .content .card-wrapper .row:first-child {
1453
  background-color: #000338;
1454
- padding: 15px;
1455
  margin-bottom: 1rem;
1456
  margin-left: 0;
1457
  margin-right: 0;
1458
  border-radius: calc(15px - 1px) calc(15px - 1px) 0 0;
1459
  }
1460
-
 
 
1461
  .wizard-section.campaign-wizard .wizard-content .wizard .content .card-wrapper .row:first-child .heading-tbl {
1462
  margin-bottom: 0;
1463
  font-size: 15px;
1464
  color: #FFFFFF;
1465
  text-decoration: none;
1466
  font-weight: normal;
1467
- border-right: 1px solid #FFFFFF;
1468
  text-align: center;
1469
  }
1470
 
@@ -1544,6 +1546,8 @@ textarea.form-control, .select2.select2-container--default textarea.select2-sele
1544
  text-align: center;
1545
  border-radius: 0;
1546
  background-color: transparent;
 
 
1547
  }
1548
 
1549
  .sync-new-product .product-card .col:after {
@@ -1551,8 +1555,8 @@ textarea.form-control, .select2.select2-container--default textarea.select2-sele
1551
  border-right: 1px solid #A9A9A9;
1552
  display: block;
1553
  position: absolute;
1554
- top: 25px;
1555
- bottom: 5px;
1556
  right: 0;
1557
  }
1558
  .sync-new-product .product-card .col:last-child:after {
@@ -2656,4 +2660,335 @@ textarea.form-control, .select2.select2-container--default textarea.select2-sele
2656
  .tvc_licence_key_change_wapper.google-account-analytics .acc-num .tvc_licence_key_change{display: table-cell; vertical-align: middle;}
2657
  .tvc_licence_key_change_wapper.google-account-analytics .acc-num .tvc_licence_key{display: table-cell; letter-spacing: 8px;
2658
  font-size: 15px; width: calc(100% - 110px); vertical-align: middle; font-weight: 400;}
2659
- .tvc_licence_key_change_wapper.google-account-analytics .acc-num .tvc_licence_key_title{vertical-align: middle; display: table-cell;}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
739
  }
740
 
741
  .header-section .navbar-section {
742
+ /* padding: 15px 0;*/
743
+ padding: 10px 0 2px 0;
744
  margin-bottom: 0;
745
  }
746
 
749
  }
750
 
751
  .header-section .navbar-section .navbar-brand img {
752
+ width: auto;
753
+ max-height: 45px;
754
  }
755
 
756
  .header-section .navbar-section .nav-btn {
1452
 
1453
  .wizard-section.campaign-wizard .wizard-content .wizard .content .card-wrapper .row:first-child {
1454
  background-color: #000338;
1455
+ padding: 3px;
1456
  margin-bottom: 1rem;
1457
  margin-left: 0;
1458
  margin-right: 0;
1459
  border-radius: calc(15px - 1px) calc(15px - 1px) 0 0;
1460
  }
1461
+ .wizard-section.campaign-wizard .wizard-content .wizard .content .card-wrapper .row:first-child .col-6:first-child{
1462
+ border-right: 1px solid #FFFFFF;
1463
+ }
1464
  .wizard-section.campaign-wizard .wizard-content .wizard .content .card-wrapper .row:first-child .heading-tbl {
1465
  margin-bottom: 0;
1466
  font-size: 15px;
1467
  color: #FFFFFF;
1468
  text-decoration: none;
1469
  font-weight: normal;
 
1470
  text-align: center;
1471
  }
1472
 
1546
  text-align: center;
1547
  border-radius: 0;
1548
  background-color: transparent;
1549
+ box-shadow: none;
1550
+ margin: 0;
1551
  }
1552
 
1553
  .sync-new-product .product-card .col:after {
1555
  border-right: 1px solid #A9A9A9;
1556
  display: block;
1557
  position: absolute;
1558
+ top: 8px;
1559
+ bottom: 8px;
1560
  right: 0;
1561
  }
1562
  .sync-new-product .product-card .col:last-child:after {
2660
  .tvc_licence_key_change_wapper.google-account-analytics .acc-num .tvc_licence_key_change{display: table-cell; vertical-align: middle;}
2661
  .tvc_licence_key_change_wapper.google-account-analytics .acc-num .tvc_licence_key{display: table-cell; letter-spacing: 8px;
2662
  font-size: 15px; width: calc(100% - 110px); vertical-align: middle; font-weight: 400;}
2663
+ .tvc_licence_key_change_wapper.google-account-analytics .acc-num .tvc_licence_key_title{vertical-align: middle; display: table-cell;}
2664
+
2665
+ /*price Table*/
2666
+ .tvc-price-table-features{
2667
+ width: 100%;
2668
+ padding-top: 60px;
2669
+ }
2670
+ .tvc-price-table-features .container {
2671
+ width: 1300px;
2672
+ min-width: 1000px;
2673
+ margin: 0 auto;
2674
+ padding-left: 20px;
2675
+ padding-right: 20px;
2676
+ position: relative;
2677
+ }
2678
+ .tvc-price-table-features .column {
2679
+ float: left;
2680
+ border-right: 1px solid #ebebeb;
2681
+ position: relative;
2682
+ text-align: center;
2683
+ }
2684
+ .tvc-price-table-features .row-heading .column {
2685
+ border-top: 1px solid #ebebeb;
2686
+ }
2687
+ .tvc-price-table-features.columns-5 .column {
2688
+ width: 20%;
2689
+ }
2690
+ .tvc-price-table-features .column:nth-child(2) {
2691
+ border-left: 1px solid #ebebeb;
2692
+ }
2693
+
2694
+ .tvc-price-table-features .row-heading .column:first-of-type {
2695
+ border-top: none;
2696
+ }
2697
+
2698
+ .tvc-price-table-features .row-heading .column:first-child{
2699
+ border-right: 1px solid transparent;
2700
+ }
2701
+ .tvc-price-table-features .row-feature .column:first-child, .tvc-price-table-features .row-footer .column:first-child{
2702
+ border-right: 1px solid transparent;
2703
+ text-align: left;
2704
+ }
2705
+ .tvc-price-table-features .row-heading {
2706
+ display: -webkit-box;
2707
+ display: -ms-flexbox;
2708
+ display: flex;
2709
+ -webkit-box-align: stretch;
2710
+ -ms-flex-align: stretch;
2711
+ align-items: stretch;
2712
+ border-top: 1px solid transparent;
2713
+ border-left: 1px solid transparent;
2714
+ border-width: 1px 0 1px 1px;
2715
+ border-style: solid;
2716
+ border-color: #ebebeb;
2717
+ border-bottom: 0;
2718
+ }
2719
+
2720
+ .tvc-price-table-features .row-feature .column{
2721
+ padding: 12px 20px 12px 20px;
2722
+
2723
+ }
2724
+ /*.tvc-price-table-features .row.feature .column:first-of-type{
2725
+ text-align: left;
2726
+ padding-right: 5px;
2727
+ padding-left: 15px;
2728
+ }*/
2729
+ .tvc-price-table-features .row-feature .column:first-child{
2730
+ border-right: 1px solid transparent;.tvc-price-table-features .row-feature .column:first-child, .tvc-price-table-features .row-footer .column:first-child
2731
+ }
2732
+ .tvc-price-table-features .row-feature{
2733
+ font-size: 14px;
2734
+ border-width: 1px 0 1px 1px;
2735
+ border-style: solid;
2736
+ border-color: #ebebeb;
2737
+ border-bottom: 0;
2738
+ display: -webkit-box;
2739
+ display: -ms-flexbox;
2740
+ display: flex;
2741
+ -webkit-box-align: stretch;
2742
+ -ms-flex-align: stretch;
2743
+ align-items: stretch;
2744
+ }
2745
+
2746
+ .tvc-price-table-features .column .name-wrap {
2747
+ background: #f9f9f9;
2748
+ padding: 12px;
2749
+ margin: 0 0 16px 0;
2750
+ }
2751
+ .tvc-price-table-features .column .name {
2752
+ font-size: 23px;
2753
+ font-weight: 600;
2754
+ color: #060221;
2755
+ line-height: 44px;
2756
+ letter-spacing: 0px;
2757
+ }
2758
+ .tvc-price-table-features .column .price-normal {
2759
+ text-align: center;
2760
+ font-weight: 300;
2761
+ font-size: 15px;
2762
+ line-height: 1;
2763
+ margin: 0 0 10px 0;
2764
+ }
2765
+ .tvc-price-table-features .column .price-normal span {
2766
+ position: relative;
2767
+ font-size: 17px;
2768
+ }
2769
+ .tvc-price-table-features .column .price-normal span:after {
2770
+ content: ' ';
2771
+ width: 100%;
2772
+ height: 1px;
2773
+ border-bottom: 1px solid red;
2774
+ position: absolute;
2775
+ top: 55%;
2776
+ left: 0;
2777
+ }
2778
+ .clearfix:after {
2779
+ clear: both;
2780
+ content: " ";
2781
+ display: table;
2782
+ }
2783
+
2784
+
2785
+ .tvc-price-table-features .row-subheading{
2786
+ border-width: 1px 0 1px 1px;
2787
+ border-style: solid;
2788
+ border-color: #ebebeb;
2789
+ border-bottom: 0;}
2790
+ .tvc-price-table-features .row-subheading {
2791
+ font-weight: 700;
2792
+ font-size: 16px;
2793
+ padding: 10px 15px;
2794
+ background: #ebebeb;
2795
+ text-align: center;
2796
+ }
2797
+ .tvc-price-table-features .row-footer {
2798
+ display: flex;
2799
+ }
2800
+ .tvc-price-table-features .row-footer {
2801
+ border-width: 1px 0 1px 1px;
2802
+ border-style: solid;
2803
+ border-color: #ebebeb;
2804
+ }
2805
+ .tvc-price-table-features .row-footer .column {
2806
+ padding: 20px 20px 18px 20px;
2807
+ }
2808
+ .tvc-guarantee .guarantee {
2809
+ border: 1px solid #ebebeb;
2810
+ background-color: #0137FC;
2811
+ color: #fff;
2812
+ padding: 30px;
2813
+ margin: 40px 0 0 0;
2814
+
2815
+ }
2816
+ .tvc-guarantee .guarantee .title{ font-size: 18px;
2817
+ font-weight: 600;}
2818
+ .tvc-guarantee .guarantee .title span{font-size: 23px;
2819
+ font-style: italic;
2820
+ margin-right: 20px;
2821
+ font-weight: bold;
2822
+ }
2823
+ .tvc-price-table-features .tvc-list-price{
2824
+ border-bottom: 1px solid #ebebeb;
2825
+ padding: 0px 0 10px 0;
2826
+ }
2827
+
2828
+ .tvc-price-table-features .tvc-list-price .price-current{
2829
+ font-size: 30px;
2830
+ font-weight: 700;
2831
+ color: #0137FC;
2832
+ }
2833
+ .tvc-price-table-features .tvc-list-price .price-current .inner span{
2834
+ font-size: 12px;
2835
+ }
2836
+ .tvc-btn{background-color: #0137FC !important;
2837
+ border-style: solid;
2838
+ border-radius: 26px 26px 26px 26px !important;
2839
+ color: #fff !important;
2840
+ display: inline-block;
2841
+ line-height: 1;
2842
+ font-size: 15px;
2843
+ padding: 12px 24px;
2844
+ fill: #fff;
2845
+ text-align: center;
2846
+ -webkit-transition: all .3s;
2847
+ -o-transition: all .3s;
2848
+ transition: all .3s;
2849
+ text-decoration:none;
2850
+ margin: 10px 0;
2851
+ }
2852
+ .tvc-blank-col span{position: absolute;
2853
+ bottom: 5px;
2854
+ font-size: 18px;
2855
+ text-align: center;
2856
+ left: 0;
2857
+ right: 0;
2858
+ font-weight: 600;}
2859
+ .tvc-free-plan span{
2860
+ position: absolute;
2861
+ bottom: 0px;
2862
+ font-size: 18px;
2863
+ text-align: center;
2864
+ left: 0;
2865
+ right: 0;
2866
+ font-weight: 600;
2867
+ }
2868
+ .tvc-free-plan .tvc-list-price .price-current span{
2869
+ position: relative;
2870
+ font-size: 30px;
2871
+ font-weight: 700;
2872
+ color: #0137FC;
2873
+ margin-top: 43px;
2874
+ display: block;
2875
+ }
2876
+
2877
+ .tvc_popular{background-color: #EE345E;
2878
+ color: white;
2879
+ font-style: normal;
2880
+ font-weight: bold;
2881
+ font-size: 12px;
2882
+ text-align: center;
2883
+ text-transform: uppercase;
2884
+ position: absolute;
2885
+ right: -41px;
2886
+ top: 2px;
2887
+ transform: rotate( 45deg );
2888
+ width: 138px;
2889
+ letter-spacing: 2px;
2890
+ clip-path: polygon(22% 0, 77% 0, 101% 100%, 0 95%);
2891
+ padding-top: 9px;
2892
+ padding-bottom: 9px;
2893
+ }
2894
+ .tvc-price-table-features .column.popular {
2895
+ background-color: #f1f9ff;
2896
+ }
2897
+ .tvc-price-table-features .column img{height: 18px;}
2898
+ .elementor-column-wrap.active{ background-color: #0137FC;}
2899
+ .elementor-column-wrap.active h5.elementor-heading-title{
2900
+ color: #fff !important;
2901
+ }
2902
+ .selected-plan-info .tvc_price_cancel{margin: 0 8px 10px 0;}
2903
+ .paypal_plan_type{float: right;
2904
+ margin-right: 20px;}
2905
+ .selected-plan-info .tvc_month_free{
2906
+ display: inline-block;
2907
+ width: 110px;
2908
+ margin-left: 5px;
2909
+ }
2910
+ a.elementor-button-link{
2911
+ text-decoration: none;
2912
+ }
2913
+ .tvc-plan-off{
2914
+ display: inline-block;
2915
+ margin-left: 5px;
2916
+ color: #2FBB0E;
2917
+ font-weight: 600;
2918
+ }
2919
+ .tvc_month_free{
2920
+ text-align: center;
2921
+ background-color: #2FBB0E;
2922
+ color: #fff;
2923
+ width: 119px;
2924
+ font-size: 14px;
2925
+ line-height: 21px;
2926
+ font-weight: 600;
2927
+ margin: 0 auto;
2928
+ }
2929
+ .tvc-plan-price span{font-size: 12px;}
2930
+ .tvc-price-table-features .tvc_popular{
2931
+ width: 100%;
2932
+ top: -35px;
2933
+ right: 0;
2934
+ left: 0;
2935
+ transform: none;
2936
+ clip-path:none;
2937
+ }
2938
+ .paypal-message-box ol{padding-left: 25px;}
2939
+ .paypal-message-box a {text-decoration: underline;}
2940
+ .tvc-list-price-month a, .tvc-list-price-year a {
2941
+ font-weight: bold;
2942
+ }
2943
+
2944
+ /*End price Table*/
2945
+ .tvc-new-freevspro{
2946
+ /* background-color: #EE345E;
2947
+ color: white;
2948
+ font-style: normal;
2949
+ font-weight: bold;
2950
+ font-size: 12px;
2951
+ height: 40px;
2952
+ text-align: center;
2953
+ text-transform: uppercase;
2954
+ position: absolute;
2955
+
2956
+ top: -7px;
2957
+ left: -25px;
2958
+ padding-top: 33px;
2959
+
2960
+ transform: rotate( 314deg );
2961
+ width: 63px;
2962
+ letter-spacing: 2px;
2963
+ /*clip-path: polygon(50% 0%, 53% 0, 109% 109%, -4% 99%);
2964
+ clip-path: polygon(50% 0%, 53% 0, 112% 97%, -11% 99%);
2965
+ padding-top: 19.5px;*/
2966
+ background-color: #EE345E;
2967
+ color: white;
2968
+ font-style: normal;
2969
+ font-weight: bold;
2970
+ font-size: 12px;
2971
+ height: 38px;
2972
+ text-align: center;
2973
+ text-transform: uppercase;
2974
+ position: absolute;
2975
+
2976
+ top: -8px;
2977
+ left: 11px;
2978
+ left: 119px;
2979
+ padding-top: 33px;
2980
+
2981
+ transform: rotate(
2982
+ 43deg
2983
+ );
2984
+ width: 70px;
2985
+ letter-spacing: 2px;
2986
+ clip-path: polygon(50% 0%, 53% 0, 109% 109%, -4% 99%);
2987
+ /* clip-path: polygon(50% 0%, 53% 0, 112% 97%, -11% 99%); */
2988
+ padding-top: 19.5px;
2989
+
2990
+ }
2991
+ .tvc_plugin_container .nav-link{position: relative;}
2992
+ .tvc-new-freevspro-nav-item{
2993
+ width: 169px;
2994
+ }
admin/css/enhanced-ecommerce-google-analytics-admin.css CHANGED
@@ -569,6 +569,8 @@ button.tvc_animate_btn:hover::after, button.tvc_animate_btn:focus::after {
569
  }
570
  #tvc-account-page .tvc-table{margin-top:30px; }
571
  #productSync .shop-category{text-align: right;}
 
 
572
 
573
  .tvc_plugin_container .notice, div.error, div.updated {margin: 0;}
574
  .select2-container--default .select2-selection--single .select2-selection__arrow b{top: 35%; border: solid #2f3d4a !important; border-width: 0 2px 2px 0 !important;}
@@ -576,17 +578,17 @@ button.tvc_animate_btn:hover::after, button.tvc_animate_btn:focus::after {
576
  .tvc-notification-dropdown-menu{
577
  width: 420px;
578
  right: 0;
579
- left: auto;
580
- background: #F1F1F1;
581
-
582
  }
 
583
  .tvc-notification .tvc-msg.plain{ position: relative;
584
  color: #757575;
585
- background: #fff;
586
  border-radius: 2px;
587
  font-size: 13px;
588
  font-size: .8125rem;
589
- margin: 7px; padding: 0px 10px;}
 
590
  /*.tvc-notification li:last-child .tvc-msg.plain,*/
591
  .tvc-notification li:last-child{margin-bottom: 0;}
592
  .tvc-notification .tvc-msg_title{color: #1e1e1e;
@@ -604,7 +606,7 @@ button.tvc_animate_btn:hover::after, button.tvc_animate_btn:focus::after {
604
  .tvc-notification .tvc-notification-button.is-secondary{
605
  box-shadow: inset 0 0 0 1px #007cba;
606
  outline: 1px solid transparent;}
607
- .tvc-notification .dropdown-menu{padding: 0; margin-top: 10px; border: 0.5px solid #A9A9A9;}
608
  .tvc-notification .dropdown-menu:before {
609
  content: "";
610
  position: absolute;
@@ -664,4 +666,37 @@ img{
664
  image-rendering: -webkit-optimize-contrast;
665
  image-rendering: crisp-edges;
666
  -ms-interpolation-mode: nearest-neighbor;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
667
  }
569
  }
570
  #tvc-account-page .tvc-table{margin-top:30px; }
571
  #productSync .shop-category{text-align: right;}
572
+ /*#productSync .card-wrapper .row .col-6 h6{display: inline-block;}*/
573
+ #productSync .card-wrapper .row .col-6 .gmc-image-heading{padding: 5px 0;}
574
 
575
  .tvc_plugin_container .notice, div.error, div.updated {margin: 0;}
576
  .select2-container--default .select2-selection--single .select2-selection__arrow b{top: 35%; border: solid #2f3d4a !important; border-width: 0 2px 2px 0 !important;}
578
  .tvc-notification-dropdown-menu{
579
  width: 420px;
580
  right: 0;
581
+ left: auto;
 
 
582
  }
583
+ .tvc-msg_wrapper .tvc-msg_date{float: right; padding: 6px;}
584
  .tvc-notification .tvc-msg.plain{ position: relative;
585
  color: #757575;
586
+ background: #F1F1F1;
587
  border-radius: 2px;
588
  font-size: 13px;
589
  font-size: .8125rem;
590
+ margin: 7px; padding: 0px 10px;
591
+ border-radius: 10px;}
592
  /*.tvc-notification li:last-child .tvc-msg.plain,*/
593
  .tvc-notification li:last-child{margin-bottom: 0;}
594
  .tvc-notification .tvc-msg_title{color: #1e1e1e;
606
  .tvc-notification .tvc-notification-button.is-secondary{
607
  box-shadow: inset 0 0 0 1px #007cba;
608
  outline: 1px solid transparent;}
609
+ .tvc-notification .dropdown-menu{padding: 0; margin-top: 10px; border: 0.5px solid #A9A9A9; border-radius: 15px;}
610
  .tvc-notification .dropdown-menu:before {
611
  content: "";
612
  position: absolute;
666
  image-rendering: -webkit-optimize-contrast;
667
  image-rendering: crisp-edges;
668
  -ms-interpolation-mode: nearest-neighbor;
669
+ }
670
+ .progress{background-color: #ffff; border-radius: 8px;}
671
+ /*.tvc-sync-progress-db{display: none; margin-top: 5px;}*/
672
+ .tvc-sync-progress-gmc{display: none; margin-top: 5px;}
673
+ /*.tvc-progress-info{display: none;}*/
674
+ .progress-bar-wapper{display:none;}
675
+ .tvc-sync-count{display: inline-block; text-align: left; float: left;}
676
+ .tvc-total-count{display: inline-block; text-align: right; float: right;}
677
+ .tvc-sync-message{
678
+ display: block;
679
+ font-weight: 700;
680
+ text-align: left;
681
+ margin: 0 0 10px 0;
682
+ }
683
+ .tvc-progress-info{padding: 0 5px;}
684
+ .progress-bar-wapper.open{
685
+ height: 100px;
686
+ width: 500px;
687
+ overflow: hidden;
688
+ background: #EEEEEE;
689
+ box-shadow: 0 0 10px black;
690
+ border-radius: 10px;
691
+ position: fixed;
692
+ top: 30%;
693
+ left: 50%;
694
+ margin-top: 100px;
695
+ transform: translate(-50%, -50%);
696
+ z-index: 9999;
697
+ padding: 20px;
698
+ text-align: center;
699
+ display: block;
700
+ animation: tvc_popup_box_open 0.5s;
701
+ -webkit-animation: tvc_popup_box_open 0.5s;
702
  }
admin/images/adwords.png DELETED
Binary file
admin/images/check.png ADDED
Binary file
admin/images/close.png ADDED
Binary file
admin/images/cotlw.png DELETED
Binary file
admin/images/discount.gif DELETED
Binary file
admin/images/exclaimation.png CHANGED
Binary file
admin/images/facebook.jpg DELETED
Binary file
admin/images/google_optimize.png DELETED
Binary file
admin/images/icon/google-shopping.svg ADDED
@@ -0,0 +1 @@
 
1
+ <svg height="30" viewBox=".381 -4.99021715 516.22889793 516.22821715" width="30" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><path d="m411.503 136.66c20.182 0 36.545-16.362 36.545-36.544s-16.363-36.544-36.545-36.544-36.544 16.362-36.544 36.544 16.362 36.544 36.544 36.544zm-258.888-11.155 112.108-112.108c8.552-8.552 20.428-13.777 33.493-13.777h166.276a47.343 47.343 0 0 1 47.508 47.507v166.276c0 13.065-5.226 24.942-14.015 33.493l-111.937 112.044z" fill="#4285f4"/><path d="m386.048 358.94-138.153 138.283c-8.79 8.551-20.666 14.015-33.73 14.015s-24.942-5.464-33.493-14.015l-166.277-166.275c-8.789-8.552-14.014-20.428-14.014-33.493 0-13.302 5.463-25.179 14.014-33.73l138.22-138.22z" fill="#34a853"/><path d="m95.085 411.637-80.69-80.69c-8.789-8.549-14.014-20.427-14.014-33.491 0-13.302 5.463-25.179 14.014-33.73l138.22-138.22 114.3 114.302z" fill="#fbbc05"/><path d="m495.595 11.127a47.344 47.344 0 0 0 -31.103-11.507h-166.276c-13.065 0-24.941 5.225-33.493 13.777l-112.108 112.108 114.3 114.302 116.415-116.415a36.394 36.394 0 0 1 -8.37-23.276c0-20.182 16.361-36.544 36.543-36.544a36.394 36.394 0 0 1 23.277 8.37z" fill="#ea4335"/><circle cx="266.849" cy="252.764" fill="#4285f4" r="74.23"/><path d="m367.983 230.928h-98.726v42.358h56.828c-5.298 26.91-27.45 42.358-56.828 42.358-34.675 0-62.607-28.903-62.607-64.783s27.932-64.783 62.607-64.783c14.93 0 28.414 5.482 39.009 14.452l30.822-31.894c-18.782-16.943-42.862-27.408-69.831-27.408-58.754 0-105.95 48.837-105.95 109.633s47.196 109.633 105.95 109.633c52.975 0 101.134-39.867 101.134-109.633 0-6.478-.963-13.455-2.408-19.933z" fill="#fff"/></g></svg>
admin/images/icon/woocommerce.svg ADDED
@@ -0,0 +1 @@
 
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" width="40px" height="40px"><path fill="#a64a7b" d="M43,11H5c-2.209,0-4,1.791-4,4v16c0,2.209,1.791,4,4,4h19l8,4l-2-4h13c2.209,0,4-1.791,4-4V15 C47,12.791,45.209,11,43,11z"/><path fill="#fff" d="M40.443 19c.041 0 .132.005.277.038.342.077.559.198.82.686C41.85 20.283 42 21.007 42 21.939c0 1.398-.317 2.639-.973 3.802C40.321 27 39.805 27 39.557 27c-.041 0-.132-.005-.277-.038-.342-.077-.559-.198-.809-.666C38.158 25.722 38 24.963 38 24.043c0-1.399.314-2.63.963-3.765C39.691 19 40.218 19 40.443 19M40.443 16c-1.67 0-3.026.931-4.087 2.793C35.452 20.375 35 22.125 35 24.043c0 1.434.278 2.662.835 3.686.626 1.173 1.548 1.88 2.783 2.16C38.948 29.963 39.261 30 39.557 30c1.687 0 3.043-.931 4.087-2.793C44.548 25.606 45 23.856 45 21.939c0-1.452-.278-2.662-.835-3.668-.626-1.173-1.548-1.88-2.783-2.16C41.052 16.037 40.739 16 40.443 16L40.443 16zM28.443 19c.041 0 .132.005.268.036.333.076.571.207.829.689C29.85 20.283 30 21.007 30 21.939c0 1.398-.317 2.639-.973 3.802C28.321 27 27.805 27 27.557 27c-.041 0-.132-.005-.277-.038-.342-.077-.559-.198-.809-.666C26.158 25.722 26 24.963 26 24.043c0-1.399.314-2.63.963-3.765C27.691 19 28.218 19 28.443 19M28.443 16c-1.67 0-3.026.931-4.087 2.793C23.452 20.375 23 22.125 23 24.043c0 1.434.278 2.662.835 3.686.626 1.173 1.548 1.88 2.783 2.16C26.948 29.963 27.261 30 27.557 30c1.687 0 3.043-.931 4.087-2.793C32.548 25.606 33 23.856 33 21.939c0-1.452-.278-2.662-.835-3.668-.626-1.173-1.565-1.88-2.783-2.16C29.052 16.037 28.739 16 28.443 16L28.443 16zM18.5 32c-.421 0-.832-.178-1.123-.505-2.196-2.479-3.545-5.735-4.34-8.343-1.144 2.42-2.688 5.515-4.251 8.119-.309.515-.894.792-1.491.715-.596-.083-1.085-.513-1.242-1.093-2.212-8.127-3.007-13.95-3.039-14.194-.11-.82.466-1.575 1.286-1.686.831-.108 1.576.465 1.687 1.286.007.049.571 4.177 2.033 10.199 2.218-4.208 4.078-8.535 4.102-8.59.267-.62.919-.989 1.58-.895.668.09 1.194.615 1.285 1.283.007.052.542 3.825 2.245 7.451.719-7.166 2.873-10.839 2.982-11.021.427-.711 1.35-.941 2.058-.515.711.426.941 1.348.515 2.058C22.762 16.313 20 21.115 20 30.5c0 .623-.386 1.182-.968 1.402C18.858 31.968 18.679 32 18.5 32z"/></svg>
admin/images/logo.png ADDED
Binary file
admin/images/m1.png DELETED
Binary file
admin/images/m2.png DELETED
Binary file
admin/images/rating.png DELETED
Binary file
admin/images/ratings.png DELETED
Binary file
admin/images/shopify_new.png DELETED
Binary file
admin/images/tatvic_logo.png CHANGED
Binary file
admin/images/woo.png DELETED
Binary file
admin/partials/about-plugin.php DELETED
@@ -1,184 +0,0 @@
1
- <?php
2
- $message = new Enhanced_Ecommerce_Google_Settings();
3
- $obj = new Enhanced_Ecommerce_Google_Analytics_Admin($plugin_name = 'enhanced-e-commerce-for-woocommerce-store', $version = PLUGIN_TVC_VERSION);
4
- $today = $obj->today();
5
- $start = $obj->start_date();
6
- $end = $obj->end_date();
7
- $currentime = $obj->current_time();
8
- $endtime = $obj->end_time();
9
- ?>
10
-
11
- <style>
12
- td{
13
- text-align: center !important;
14
- }
15
- th{
16
- text-align: center !important;
17
- }
18
- .fa-times{
19
- color:red;
20
- }
21
- .fa-check{
22
- color:green;
23
- }
24
- </style>
25
- <div class="container-fluid">
26
- <div class="row">
27
- <div class= "col col-9">
28
- <div class="card mw-100" style="padding:0;">
29
- <?php $message->show_message();?>
30
- <div class="card-header">
31
- <h5>Feature difference between <span style="font-weight: 800;">Free & Premium</span> Plugin</h5>
32
- </div>
33
- <div class="card-body">
34
- <div class="row">
35
- <div class="col-md-10 my-4 mx-auto">
36
- <div class="row">
37
- <div class="col-lg-12">
38
- <div class="table-responsve">
39
- <table class="table table-striped table-hover">
40
- <thead class="thead-inverse">
41
- <tr>
42
- <th class="w-25" style="font-weight: 900;">Features</th>
43
- <th class="" style="font-weight: 900;">Free</th>
44
- <th class="" style="font-weight: 900;">Premium</th>
45
- </tr>
46
- </thead>
47
- <tbody>
48
- <tr>
49
- <td class="w-25 option">Basic UA Tracking (Pageviews)</td>
50
- <td><i class="fa fa-check"></i></td>
51
- <td><i class="fa fa-check"></i></td>
52
- </tr>
53
- <tr>
54
- <td class="option">Enhanced Ecommerce</td>
55
- <td><strong>Only 4 Reports</strong></td>
56
- <td><strong>All reports</strong></td>
57
- </tr>
58
- <tr>
59
- <td class="option">I.P. Anonymization</td>
60
- <td><i class="fa fa-check"></i></td>
61
- <td><i class="fa fa-check"></i></td>
62
- </tr>
63
- <tr>
64
- <td class="option">Google Opt-Out</td>
65
- <td><i class="fa fa-check"></i></td>
66
- <td><i class="fa fa-check"></i></td>
67
- </tr>
68
- <tr>
69
- <td class="option">Product List Performance</td>
70
- <td><i class="fa fa-times"></i></td>
71
- <td><i class="fa fa-check"></i></td>
72
- </tr>
73
- <tr>
74
- <td class="option">Display Feature</td>
75
- <td><i class="fa fa-times"></i></td>
76
- <td><i class="fa fa-check"></i></td>
77
- </tr>
78
- <tr>
79
- <td class="option">Product Variations (eg. color,size)</td>
80
- <td><i class="fa fa-times"></i></td>
81
- <td><i class="fa fa-check"></i></td>
82
- </tr>
83
- <tr>
84
- <td class="option">Automated Product Refund (from Admin Panel)</td>
85
- <td><i class="fa fa-times"></i></td>
86
- <td><i class="fa fa-check"></i></td>
87
- </tr>
88
- <tr>
89
- <td class="option">Google Adwords Conversion Tracking</td>
90
- <td><i class="fa fa-times"></i></td>
91
- <td><i class="fa fa-check"></i></td>
92
- </tr>
93
- <tr>
94
- <td class="option">Facebook Pixel Implementation (Standard Ecommerce Events)</td>
95
- <td><i class="fa fa-times"></i></td>
96
- <td><i class="fa fa-check"></i></td>
97
- </tr>
98
- <tr>
99
- <td class="option">Add Google Optimize Snippet</td>
100
- <td><i class="fa fa-times"></i></td>
101
- <td><i class="fa fa-check"></i></td>
102
- </tr>
103
- <tr>
104
- <td class="option">Site Speed Sample Rate</td>
105
- <td><i class="fa fa-times"></i></td>
106
- <td><i class="fa fa-check"></i></td>
107
- </tr>
108
- <tr>
109
- <td class="option">User ID Tracking</td>
110
- <td><i class="fa fa-times"></i></td>
111
- <td><i class="fa fa-check"></i></td>
112
- </tr>
113
- <tr>
114
- <td class="option">Form Field Tracking</td>
115
- <td><i class="fa fa-times"></i></td>
116
- <td><i class="fa fa-check"></i></td>
117
- </tr>
118
- <tr>
119
- <td class="option">Content Grouping</td>
120
- <td><i class="fa fa-times"></i></td>
121
- <td><i class="fa fa-check"></i></td>
122
- </tr>
123
-
124
- <tr>
125
- <td class="option">Internal Promotion</td>
126
- <td><i class="fa fa-times"></i></td>
127
- <td><i class="fa fa-check"></i></td>
128
- </tr>
129
- <tr>
130
- <td class="option">20 Ready to Use Custom Dimensions/ Metrics</td>
131
- <td><i class="fa fa-times"></i></td>
132
- <td><i class="fa fa-check"></i></td>
133
- </tr>
134
- <tr>
135
- <td class="option">Premium Support</td>
136
- <td><i class="fa fa-times"></i></td>
137
- <td><i class="fa fa-check"></i></td>
138
- </tr>
139
- <tr>
140
- <td class="option">Child / Custom Theme Support</td>
141
- <td><i class="fa fa-times"></i></td>
142
- <td><i class="fa fa-check"></i></td>
143
- </tr>
144
- <tr>
145
- <td class="option">Quick Expert Support ( Query Support)</td>
146
- <td><i class="fa fa-times"></i></td>
147
- <td><i class="fa fa-check"></i></td>
148
- </tr>
149
- <tr>
150
- <td class="option">Paid Customization (As per the requirement)</td>
151
- <td><i class="fa fa-times"></i></td>
152
- <td><i class="fa fa-check"></i></td>
153
- </tr>
154
- <tr>
155
- <td class="option">Data Studio Dashboards (Paid)</td>
156
- <td><i class="fa fa-times"></i></td>
157
- <td><i class="fa fa-check"></i></td>
158
- </tr>
159
- </tbody>
160
- <tfoot class="thead-inverse">
161
- <tr>
162
- <th class="w-25"></th>
163
- <th class="w-25"></th>
164
- <th class=""><a href="#" target="_blank"><button class="btn btn-primary"><strong>Get premium plugin</strong>
165
- <?php if($today >= $start && $today <= $end && $currentime <= $endtime) {?>
166
- <img class="new-img-blink-side" src='<?php echo plugins_url('../images/discount.gif', __FILE__ ) ?>' />
167
- <?php }?>
168
- </button></a></th>
169
- </tr>
170
- </tfoot>
171
- </table>
172
- <p class="description" style="font-size: 15px;"><strong>Feel free to contact us regarding premium version inquiry at <span style="color:blue;font-size:15px;">analytics2@tatvic.com<span></strong>.<br/>Agencies & Marketers can also contact us for the bulk licenses for their clients.</p>
173
- </div>
174
- </div>
175
- </div>
176
- </div>
177
- </div>
178
- <hr>
179
- </div>
180
- </div>
181
- </div>
182
- <?php require_once('sidebar.php');?>
183
- </div>
184
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
admin/partials/enhanced-ecommerce-google-analytics-admin-display.php CHANGED
@@ -17,10 +17,11 @@ if (!defined('ABSPATH')) {
17
  class TVC_Tabs {
18
  protected $TVC_Admin_Helper;
19
  protected $site_url;
 
20
  public function __construct() {
21
  $this->TVC_Admin_Helper = new TVC_Admin_Helper();
22
  $this->site_url = "admin.php?page=enhanced-ecommerce-google-analytics-admin-display&tab=";
23
-
24
  $this->create_tabs();
25
  }
26
  protected function info_htnml($validation){
@@ -40,6 +41,16 @@ class TVC_Tabs {
40
 
41
  protected function create_tabs(){
42
  $setting_status = $this->TVC_Admin_Helper->check_setting_status();
 
 
 
 
 
 
 
 
 
 
43
  ?>
44
  <ul class="nav nav-pills nav-justified">
45
  <li class="nav-item">
@@ -85,6 +96,14 @@ class TVC_Tabs {
85
  <a href="<?php echo $this->site_url.'google_shopping_feed'; ?>" class="">Google Shopping</a>
86
  </div>
87
  </li>
 
 
 
 
 
 
 
 
88
  <li class="tvc-help-need">
89
  For any query, reach out to us at <a href="tel:+1 (415) 968-6313">+1 (415) 968-6313</a>
90
  </li>
17
  class TVC_Tabs {
18
  protected $TVC_Admin_Helper;
19
  protected $site_url;
20
+ protected $google_detail;
21
  public function __construct() {
22
  $this->TVC_Admin_Helper = new TVC_Admin_Helper();
23
  $this->site_url = "admin.php?page=enhanced-ecommerce-google-analytics-admin-display&tab=";
24
+ $this->google_detail = $this->TVC_Admin_Helper->get_ee_options_data();
25
  $this->create_tabs();
26
  }
27
  protected function info_htnml($validation){
41
 
42
  protected function create_tabs(){
43
  $setting_status = $this->TVC_Admin_Helper->check_setting_status();
44
+ $googleDetail = [];
45
+ $plan_id = 1;
46
+ if(isset($this->google_detail['setting'])){
47
+ if ($this->google_detail['setting']) {
48
+ $googleDetail = $this->google_detail['setting'];
49
+ if(isset($googleDetail->plan_id) && !in_array($googleDetail->plan_id, array("1"))){
50
+ $plan_id = $googleDetail->plan_id;
51
+ }
52
+ }
53
+ }
54
  ?>
55
  <ul class="nav nav-pills nav-justified">
56
  <li class="nav-item">
96
  <a href="<?php echo $this->site_url.'google_shopping_feed'; ?>" class="">Google Shopping</a>
97
  </div>
98
  </li>
99
+ <?php if($plan_id ==1){?>
100
+ <li class="nav-item tvc-new-freevspro-nav-item">
101
+ <div class="nav-link <?php echo $this->is_active_tabs('pricings'); ?>">
102
+ <span class="tvc-new-freevspro">New</span>
103
+ <a href="<?php echo $this->site_url.'pricings'; ?>" class="">Free Vs Pro</a>
104
+ </div>
105
+ </li>
106
+ <?php } ?>
107
  <li class="tvc-help-need">
108
  For any query, reach out to us at <a href="tel:+1 (415) 968-6313">+1 (415) 968-6313</a>
109
  </li>
admin/partials/general-fields.php CHANGED
@@ -194,8 +194,7 @@ if(isset($google_detail['setting'])){
194
  <div class="licence tvc-licence" >
195
  <div class="tvc_licence_key_wapper <?php if($plan_id != 1){?>tvc-hide<?php }?>">
196
  <p>You are using our free plugin, no licence needed ! Happy analyzing..!! :)</p>
197
- <p class="font-weight-bold">To unlock more features of google products, consider our <a href="<?php echo $TVC_Admin_Helper->get_pro_plan_site(); ?>" target="_blank">pro version.</a></p>
198
- <?php /*
199
  <form method="post" name="google-analytic" id="tvc-licence-active">
200
  <div class="input-group">
201
  <input type="text" id="licence_key" name="licence_key" class="form-control" placeholder="Already purchased? Enter licence key" required="">
@@ -204,7 +203,7 @@ if(isset($google_detail['setting'])){
204
  </div>
205
  </div>
206
  </form>
207
- */ ?>
208
  </div>
209
  </div>
210
  <?php }?>
194
  <div class="licence tvc-licence" >
195
  <div class="tvc_licence_key_wapper <?php if($plan_id != 1){?>tvc-hide<?php }?>">
196
  <p>You are using our free plugin, no licence needed ! Happy analyzing..!! :)</p>
197
+ <p class="font-weight-bold">To unlock more features of google products, consider our <a href="<?php echo $TVC_Admin_Helper->get_pro_plan_site().'?utm_source=EE+Plugin+User+Interface&utm_medium=Google+Analytics+Screen+pro+version&utm_campaign=Upsell+at+Conversios'; ?>" target="_blank">pro version.</a></p>
 
198
  <form method="post" name="google-analytic" id="tvc-licence-active">
199
  <div class="input-group">
200
  <input type="text" id="licence_key" name="licence_key" class="form-control" placeholder="Already purchased? Enter licence key" required="">
203
  </div>
204
  </div>
205
  </form>
206
+
207
  </div>
208
  </div>
209
  <?php }?>
admin/partials/pricings.php ADDED
@@ -0,0 +1,364 @@