WooCommerce Conversion Tracking - Version 2.0.4

Version Description

Download this release

Release Info

Developer Hasinur Rahman
Plugin Icon 128x128 WooCommerce Conversion Tracking
Version 2.0.4
Comparing to
See all releases

Code changes from version 2.0.3 to 2.0.4

assets/js/admin.min.js CHANGED
@@ -1 +1 @@
1
- !function(a){a("#wcct-submit").on("click",function(b){return b.preventDefault(),a("#wcct-submit").addClass("updating-message"),wp.ajax.send("wcct_save_settings",{data:a("#integration-form").serialize(),success:function(b){a("#ajax-message").html("<p><strong>"+b.message+"</strong></p>").show().delay(3e3).slideUp("fast"),a("html, body").animate({scrollTop:0},"fast"),a("#wcct-submit").removeClass("updating-message")},error:function(a){alert("something wrong happend")}}),!1}),a(".slider").on("click",function(){var b=a(this).attr("data-id");a("#setting-"+b).stop().toggle("fast")}),a(".toogle-seller:checked").each(function(b,c){var d=a(c).attr("data-id"),e=a("#setting-"+d);a(e).css("display","block")}),a(".event").on("change",function(){var b=a(this).next(".event-label-box");b.addClass("event-label-space"),b.stop().toggle()}),a(".event:checked").each(function(b,c){a(c).next(".event-label-box").addClass("event-label-space"),a(c).next(".event-label-box").css("display","block")}),a(".disabled-class").on("click",function(){var b=a(this).text();swal({title:b+" is available in Pro version",text:"Please upgrade to the Pro version to get all the awesome feature",buttons:{confirm:"Get the Pro Version",cancel:"Close"}}).then(function(a){a&&window.open("https://wedevs.com/woocommerce-conversion-tracking/upgrade-to-pro/?utm_source=wp-admin&utm_medium=pro-upgrade&utm_campaign=wcct_upgrade&utm_content=Pro_Alert","_blank")},function(){})}),a(".toogle-seller").on("change",function(){var b=a(this).parents(".switch").find(".integration-tooltip"),c=a(b).text().trim(),d="";"Activate"==c?d="Deactivate":"Deactivate"==c&&(d="Activate"),a(b).text(d)}),a("#wcct-install-happ-addons").on("click",function(b){b.preventDefault();var c=a("#wcct-preloader");a(".wcct-update-icon").remove(),a(this).text("Installing..."),a(this).addClass("updating-message"),c.show();var d=a("#wcct_remote_notice");wp.ajax.send("activate_happy_addons",{success:function(b){a(".wcct-notice-wrap").hide(),c.hide(),d.show(),d.html("<p><strong>"+b.message+"Happy Addons !</strong></p>")},error:function(a){c.hide(),d.html("<p><strong>"+response.message+"</strong></p>")}})})}(jQuery);
1
+ !function(a){a("#wcct-submit").on("click",function(b){return b.preventDefault(),a("#wcct-submit").addClass("updating-message"),wp.ajax.send("wcct_save_settings",{data:a("#integration-form").serialize(),success:function(b){a("#ajax-message").html("<p><strong>"+b.message+"</strong></p>").show().delay(3e3).slideUp("fast"),a("html, body").animate({scrollTop:0},"fast"),a("#wcct-submit").removeClass("updating-message")},error:function(a){alert("something wrong happend")}}),!1}),a(".slider").on("click",function(){var b=a(this).attr("data-id");a("#setting-"+b).stop().toggle("fast")}),a(".toogle-seller:checked").each(function(b,c){var d=a(c).attr("data-id"),e=a("#setting-"+d);a(e).css("display","block")}),a(".event").on("change",function(){var b=a(this).next(".event-label-box");b.addClass("event-label-space"),b.stop().toggle()}),a(".event:checked").each(function(b,c){a(c).next(".event-label-box").addClass("event-label-space"),a(c).next(".event-label-box").css("display","block")}),a(".disabled-class").on("click",function(){var b=a(this).text();swal({title:b+" is available in Pro version",text:"Please upgrade to the Pro version to get all the awesome feature",buttons:{confirm:"Get the Pro Version",cancel:"Close"}}).then(function(a){a&&window.open("https://wedevs.com/woocommerce-conversion-tracking/upgrade-to-pro/?utm_source=wp-admin&utm_medium=pro-upgrade&utm_campaign=wcct_upgrade&utm_content=Pro_Alert","_blank")},function(){})}),a(".toogle-seller").on("change",function(){var b=a(this).parents(".switch").find(".integration-tooltip"),c=a(b).text().trim(),d="";"Activate"==c?d="Deactivate":"Deactivate"==c&&(d="Activate"),a(b).text(d)}),a("#wcct-install-happ-addons").on("click",function(b){b.preventDefault();var c=a("#wcct-preloader");a(".wcct-update-icon").remove(),a(this).text("Installing..."),a(this).addClass("updating-message"),c.show();var d=a("#wcct_remote_notice");wp.ajax.send("activate_happy_addons",{success:function(b){a(".wcct-notice-wrap").hide(),c.hide(),d.show(),d.html("<p><strong>"+b.message+"Happy Addons !</strong></p>")},error:function(a){c.hide(),d.html("<p><strong>"+response.message+"</strong></p>")}})}),a(".wcct-notice-wrap").on("click",function(){wp.ajax.send("wcct_dismissable_notice",{success:function(a){console.log("Success")}})})}(jQuery);
conversion-tracking.php CHANGED
@@ -3,12 +3,12 @@
3
  Plugin Name: WooCommerce Conversion Tracking
4
  Plugin URI: https://wedevs.com/products/plugins/woocommerce-conversion-tracking/
5
  Description: Adds various conversion tracking codes to cart, checkout, registration success and product page on WooCommerce
6
- Version: 2.0.3
7
  Author: Tareq Hasan
8
  Author URI: https://tareq.co/
9
  License: GPL2
10
  WC requires at least: 2.3
11
- WC tested up to: 3.6.2
12
  */
13
 
14
  /**
@@ -54,7 +54,7 @@ class WeDevs_WC_Conversion_Tracking {
54
  *
55
  * @var string
56
  */
57
- public $version = '2.0.3';
58
 
59
  /**
60
  * Holds various class instances
@@ -301,7 +301,7 @@ class WeDevs_WC_Conversion_Tracking {
301
  if ( class_exists( '\Happy_Addons\Elementor\Base' ) ) {
302
  return;
303
  }
304
- $dismissable = get_option( 'wcct_dismissable_notice', true );
305
 
306
  if ( $dismissable == 'closed' ) {
307
  return;
3
  Plugin Name: WooCommerce Conversion Tracking
4
  Plugin URI: https://wedevs.com/products/plugins/woocommerce-conversion-tracking/
5
  Description: Adds various conversion tracking codes to cart, checkout, registration success and product page on WooCommerce
6
+ Version: 2.0.4
7
  Author: Tareq Hasan
8
  Author URI: https://tareq.co/
9
  License: GPL2
10
  WC requires at least: 2.3
11
+ WC tested up to: 3.7.0
12
  */
13
 
14
  /**
54
  *
55
  * @var string
56
  */
57
+ public $version = '2.0.4';
58
 
59
  /**
60
  * Holds various class instances
301
  if ( class_exists( '\Happy_Addons\Elementor\Base' ) ) {
302
  return;
303
  }
304
+ $dismissable = get_option( 'wcct_dismissable_notice' );
305
 
306
  if ( $dismissable == 'closed' ) {
307
  return;
includes/integrations/class-integration-google.php CHANGED
@@ -10,7 +10,7 @@ class WCCT_Integration_Google extends WCCT_Integration {
10
  */
11
  function __construct() {
12
  $this->id = 'adwords';
13
- $this->name = __( 'Google Adwords', 'woocommerce-conversion-tracking' );
14
  $this->enabled = true;
15
  $this->supports = array(
16
  'checkout',
@@ -30,7 +30,7 @@ class WCCT_Integration_Google extends WCCT_Integration {
30
  'label' => __( 'Account ID', 'woocommerce-conversion-tracking' ),
31
  'value' => '',
32
  'placeholder' => 'AW-123456789',
33
- 'help' => sprintf( __( 'Provide the AdWords Account ID. Usually it\'s something like <code>AW-123456789</code>, <a href="%s" target="_blank">learn more</a>.', 'woocommerce-conversion-tracking' ), 'https://wedevs.com/docs/woocommerce-conversion-tracking/google-adwords/account-id/?utm_source=wp-admin&utm_medium=inline-help&utm_campaign=wcct_docs&utm_content=adwords_learn_more' )
34
  ),
35
  'events' => array(
36
  'type' => 'multicheck',
10
  */
11
  function __construct() {
12
  $this->id = 'adwords';
13
+ $this->name = __( 'Google Ads', 'woocommerce-conversion-tracking' );
14
  $this->enabled = true;
15
  $this->supports = array(
16
  'checkout',
30
  'label' => __( 'Account ID', 'woocommerce-conversion-tracking' ),
31
  'value' => '',
32
  'placeholder' => 'AW-123456789',
33
+ 'help' => sprintf( __( 'Provide the Google Ads Account ID. Usually it\'s something like <code>AW-123456789</code>, <a href="%s" target="_blank">learn more</a>.', 'woocommerce-conversion-tracking' ), 'https://wedevs.com/docs/woocommerce-conversion-tracking/google-adwords/account-id/?utm_source=wp-admin&utm_medium=inline-help&utm_campaign=wcct_docs&utm_content=adwords_learn_more' )
34
  ),
35
  'events' => array(
36
  'type' => 'multicheck',
includes/views/settings.php CHANGED
@@ -146,12 +146,12 @@
146
  <h3 class="wcct-doc-title"><?php _e( 'Documentation', 'woocommerce-conversion-tracking' )?></h3>
147
 
148
  <ul class="wcct-doc-list">
149
- <li><a href="https://wedevs.com/docs/woocommerce-conversion-tracking/get-started/?utm_source=wp-admin&utm_medium=docs-link&utm_campaign=wcct_docs&utm_content=Get_Started" target="_blank"><img src="<?php echo plugins_url( 'assets/images/getting_started.png', WCCT_FILE ); ?>" alt="" class="doc-list-icon"><span><?php _e( 'Getting Started', 'woocommerce-conversion-tracking' ) ?></span></a></li>
150
  <li><a href="https://wedevs.com/docs/woocommerce-conversion-tracking/facebook/?utm_source=wp-admin&utm_medium=docs-link&utm_campaign=wcct_docs&utm_content=Facebook" target="_blank"><img src="<?php echo plugins_url( 'assets/images/facebook.png', WCCT_FILE ); ?>" alt="" class="doc-list-icon"><span><?php _e( 'Facebook', 'woocommerce-conversion-tracking' ) ?></span></a></li>
151
  <li><a href="https://wedevs.com/docs/woocommerce-conversion-tracking/twitter/?utm_source=wp-admin&utm_medium=docs-link&utm_campaign=wcct_docs&utm_content=Twitter" target="_blank"><img src="<?php echo plugins_url( 'assets/images/twitter.png', WCCT_FILE ); ?>" alt="" class="doc-list-icon"><span><?php _e( 'Twitter', 'woocommerce-conversion-tracking' ) ?></span></a></li>
152
- <li><a href="https://wedevs.com/docs/woocommerce-conversion-tracking/google-adwords/?utm_source=wp-admin&utm_medium=docs-link&utm_campaign=wcct_docs&utm_content=Adwords" target="_blank"><img src="<?php echo plugins_url( 'assets/images/adwords.png', WCCT_FILE ); ?>" alt="" class="doc-list-icon"><span><?php _e( 'Google Adwords', 'woocommerce-conversion-tracking' ) ?></span></a></li>
153
  <li><a href="https://wedevs.com/docs/woocommerce-conversion-tracking/perfect-audience/?utm_source=wp-admin&utm_medium=docs-link&utm_campaign=wcct_docs&utm_content=Perfect_Audience" target="_blank"><img src="<?php echo plugins_url( 'assets/images/perfect_audience.png', WCCT_FILE ); ?>" alt="" class="doc-list-icon"><span><?php _e( 'Perfect Audience', 'woocommerce-conversion-tracking' ) ?></span></a></li>
154
- <li><a href="https://wedevs.com/docs/woocommerce-conversion-tracking/bing-ads" target="_blank"><img src="<?php echo plugins_url( 'assets/images/bing_ads.png', WCCT_FILE ); ?>" alt="" class="doc-list-icon"><span><?php _e( 'Bing Ads', 'woocommerce-conversion-tracking' ) ?></span></a></li>
155
  <li><a href="https://wedevs.com/docs/woocommerce-conversion-tracking/custom/?utm_source=wp-admin&utm_medium=docs-link&utm_campaign=wcct_docs&utm_content=Custom" target="_blank"><img src="<?php echo plugins_url( 'assets/images/custom.png', WCCT_FILE ); ?>" alt="" class="doc-list-icon"><span><?php _e( 'Custom', 'woocommerce-conversion-tracking' ) ?></span></a></li>
156
  </ul>
157
  </div>
146
  <h3 class="wcct-doc-title"><?php _e( 'Documentation', 'woocommerce-conversion-tracking' )?></h3>
147
 
148
  <ul class="wcct-doc-list">
149
+ <li><a href="https://wedevs.com/docs/woocommerce-conversion-tracking/getting-started/installation/" target="_blank"><img src="<?php echo plugins_url( 'assets/images/getting_started.png', WCCT_FILE ); ?>" alt="" class="doc-list-icon"><span><?php _e( 'Getting Started', 'woocommerce-conversion-tracking' ) ?></span></a></li>
150
  <li><a href="https://wedevs.com/docs/woocommerce-conversion-tracking/facebook/?utm_source=wp-admin&utm_medium=docs-link&utm_campaign=wcct_docs&utm_content=Facebook" target="_blank"><img src="<?php echo plugins_url( 'assets/images/facebook.png', WCCT_FILE ); ?>" alt="" class="doc-list-icon"><span><?php _e( 'Facebook', 'woocommerce-conversion-tracking' ) ?></span></a></li>
151
  <li><a href="https://wedevs.com/docs/woocommerce-conversion-tracking/twitter/?utm_source=wp-admin&utm_medium=docs-link&utm_campaign=wcct_docs&utm_content=Twitter" target="_blank"><img src="<?php echo plugins_url( 'assets/images/twitter.png', WCCT_FILE ); ?>" alt="" class="doc-list-icon"><span><?php _e( 'Twitter', 'woocommerce-conversion-tracking' ) ?></span></a></li>
152
+ <li><a href="https://wedevs.com/docs/woocommerce-conversion-tracking/google-adwords/?utm_source=wp-admin&utm_medium=docs-link&utm_campaign=wcct_docs&utm_content=Adwords" target="_blank"><img src="<?php echo plugins_url( 'assets/images/adwords.png', WCCT_FILE ); ?>" alt="" class="doc-list-icon"><span><?php _e( 'Google Ads', 'woocommerce-conversion-tracking' ) ?></span></a></li>
153
  <li><a href="https://wedevs.com/docs/woocommerce-conversion-tracking/perfect-audience/?utm_source=wp-admin&utm_medium=docs-link&utm_campaign=wcct_docs&utm_content=Perfect_Audience" target="_blank"><img src="<?php echo plugins_url( 'assets/images/perfect_audience.png', WCCT_FILE ); ?>" alt="" class="doc-list-icon"><span><?php _e( 'Perfect Audience', 'woocommerce-conversion-tracking' ) ?></span></a></li>
154
+ <li><a href="https://wedevs.com/docs/woocommerce-conversion-tracking/bing-ads" target="_blank"><img src="<?php echo plugins_url( 'assets/images/bing_ads.png', WCCT_FILE ); ?>" alt="" class="doc-list-icon"><span><?php _e( 'Microsoft Advertising', 'woocommerce-conversion-tracking' ) ?></span></a></li>
155
  <li><a href="https://wedevs.com/docs/woocommerce-conversion-tracking/custom/?utm_source=wp-admin&utm_medium=docs-link&utm_campaign=wcct_docs&utm_content=Custom" target="_blank"><img src="<?php echo plugins_url( 'assets/images/custom.png', WCCT_FILE ); ?>" alt="" class="doc-list-icon"><span><?php _e( 'Custom', 'woocommerce-conversion-tracking' ) ?></span></a></li>
156
  </ul>
157
  </div>
languages/woocommerce-conversion-tracking.pot CHANGED
@@ -2,9 +2,9 @@
2
  # This file is distributed under the GPL2.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: WooCommerce Conversion Tracking 2.0.3\n"
6
  "Report-Msgid-Bugs-To: https://example.com\n"
7
- "POT-Creation-Date: 2019-08-05 09:53:06+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
@@ -31,7 +31,7 @@ msgid ""
31
  "href=\"https://wordpress.org/plugins/woocommerce/\">Woocommerce</a>"
32
  msgstr ""
33
 
34
- #: conversion-tracking.php:313
35
  msgid ""
36
  "Reach beyond your imagination in creating web pages. <strong> Try Happy "
37
  "Addons for Elementor to shape your dream.</strong> 😊"
@@ -45,15 +45,15 @@ msgstr ""
45
  msgid "Integrations"
46
  msgstr ""
47
 
48
- #: includes/class-ajax.php:42
49
  msgid "Settings has been saved successfully!"
50
  msgstr ""
51
 
52
- #: includes/class-ajax.php:63
53
  msgid "ERROR: Error fetching plugin information: %s"
54
  msgstr ""
55
 
56
- #: includes/class-ajax.php:88
57
  msgid "Successfully installed and activate,"
58
  msgstr ""
59
 
@@ -259,7 +259,7 @@ msgstr ""
259
 
260
  #: includes/integrations/class-integration-google.php:13
261
  #: includes/views/settings.php:152
262
- msgid "Google Adwords"
263
  msgstr ""
264
 
265
  #: includes/integrations/class-integration-google.php:30
@@ -268,7 +268,7 @@ msgstr ""
268
 
269
  #: includes/integrations/class-integration-google.php:33
270
  msgid ""
271
- "Provide the AdWords Account ID. Usually it's something like "
272
  "<code>AW-123456789</code>, <a href=\"%s\" target=\"_blank\">learn more</a>."
273
  msgstr ""
274
 
@@ -300,7 +300,7 @@ msgid "Perfect Audience"
300
  msgstr ""
301
 
302
  #: includes/views/settings.php:154
303
- msgid "Bing Ads"
304
  msgstr ""
305
 
306
  #. Plugin Name of the plugin/theme
2
  # This file is distributed under the GPL2.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: WooCommerce Conversion Tracking 2.0.4\n"
6
  "Report-Msgid-Bugs-To: https://example.com\n"
7
+ "POT-Creation-Date: 2019-08-21 06:56:44+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
31
  "href=\"https://wordpress.org/plugins/woocommerce/\">Woocommerce</a>"
32
  msgstr ""
33
 
34
+ #: conversion-tracking.php:318
35
  msgid ""
36
  "Reach beyond your imagination in creating web pages. <strong> Try Happy "
37
  "Addons for Elementor to shape your dream.</strong> 😊"
45
  msgid "Integrations"
46
  msgstr ""
47
 
48
+ #: includes/class-ajax.php:43
49
  msgid "Settings has been saved successfully!"
50
  msgstr ""
51
 
52
+ #: includes/class-ajax.php:64
53
  msgid "ERROR: Error fetching plugin information: %s"
54
  msgstr ""
55
 
56
+ #: includes/class-ajax.php:89
57
  msgid "Successfully installed and activate,"
58
  msgstr ""
59
 
259
 
260
  #: includes/integrations/class-integration-google.php:13
261
  #: includes/views/settings.php:152
262
+ msgid "Google Ads"
263
  msgstr ""
264
 
265
  #: includes/integrations/class-integration-google.php:30
268
 
269
  #: includes/integrations/class-integration-google.php:33
270
  msgid ""
271
+ "Provide the Google Ads Account ID. Usually it's something like "
272
  "<code>AW-123456789</code>, <a href=\"%s\" target=\"_blank\">learn more</a>."
273
  msgstr ""
274
 
300
  msgstr ""
301
 
302
  #: includes/views/settings.php:154
303
+ msgid "Microsoft Advertising"
304
  msgstr ""
305
 
306
  #. Plugin Name of the plugin/theme
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: tareq1988
3
  Tags: ecommerce, e-commerce, commerce, woocommerce, tracking, facebook, google, adwords, tracking-pixel
4
  Donate link: https://tareq.co/donate/
5
  Requires at least: 4.0
6
- Tested up to: 5.2.2
7
- Stable tag: 2.0.3
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -88,6 +88,11 @@ We put the JavaScript scripts provided by you in the page and it fires a convers
88
  5. Custom Codes
89
 
90
  == Changelog ==
 
 
 
 
 
91
  = Version 2.0.3 (05-August-2019) =
92
  * [fix] AddToCart Event doesn't work for ajax
93
  * [new] Add happy addons banner
3
  Tags: ecommerce, e-commerce, commerce, woocommerce, tracking, facebook, google, adwords, tracking-pixel
4
  Donate link: https://tareq.co/donate/
5
  Requires at least: 4.0
6
+ Tested up to: 5.1.1
7
+ Stable tag: 2.0.4
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
88
  5. Custom Codes
89
 
90
  == Changelog ==
91
+ = Version 2.0.4 (21-August-2019) =
92
+ * [fix] Happyaddons dismissable banner
93
+ * [fix] Getting started link doesn't work
94
+ * [tweak] Change from Google Adwords to Google Ads
95
+
96
  = Version 2.0.3 (05-August-2019) =
97
  * [fix] AddToCart Event doesn't work for ajax
98
  * [new] Add happy addons banner