Version Description
- 21/03/2022 =
- Fix: - Site verification issue for some users.
Download this release
Release Info
Developer | ramniktatvic |
Plugin | Enhanced Ecommerce Google Analytics Plugin for WooCommerce |
Version | 4.6.9 |
Comparing to | |
See all releases |
Code changes from version 4.6.8 to 4.6.9
admin/class-tvc-admin-auto-product-sync-helper.php
CHANGED
@@ -482,7 +482,7 @@ if ( ! class_exists( 'TVC_Admin_Auto_Product_sync_Helper' ) ) {
|
|
482 |
if (isset($result->error) && $result->error) {
|
483 |
$credentials = json_decode(file_get_contents(ENHANCAD_PLUGIN_DIR . 'includes/setup/json/client-secrets.json'), true);
|
484 |
$url = 'https://www.googleapis.com/oauth2/v4/token';
|
485 |
-
$header = array("
|
486 |
$clientId = $credentials['web']['client_id'];
|
487 |
$clientSecret = $credentials['web']['client_secret'];
|
488 |
|
@@ -495,7 +495,7 @@ if ( ! class_exists( 'TVC_Admin_Auto_Product_sync_Helper' ) ) {
|
|
495 |
$args = array(
|
496 |
'headers' =>$header,
|
497 |
'method' => 'POST',
|
498 |
-
'body' => $data
|
499 |
);
|
500 |
$request = wp_remote_post(esc_url_raw($url), $args);
|
501 |
// Retrieve information
|
482 |
if (isset($result->error) && $result->error) {
|
483 |
$credentials = json_decode(file_get_contents(ENHANCAD_PLUGIN_DIR . 'includes/setup/json/client-secrets.json'), true);
|
484 |
$url = 'https://www.googleapis.com/oauth2/v4/token';
|
485 |
+
$header = array("Content-Type" => "application/json");
|
486 |
$clientId = $credentials['web']['client_id'];
|
487 |
$clientSecret = $credentials['web']['client_secret'];
|
488 |
|
495 |
$args = array(
|
496 |
'headers' =>$header,
|
497 |
'method' => 'POST',
|
498 |
+
'body' => wp_json_encode($data)
|
499 |
);
|
500 |
$request = wp_remote_post(esc_url_raw($url), $args);
|
501 |
// Retrieve information
|
admin/helper/class-onboarding-helper.php
CHANGED
@@ -1127,7 +1127,7 @@ if(!class_exists('Conversios_Onboarding_ApiCall') ){
|
|
1127 |
if (isset($result->error) && $result->error) {
|
1128 |
$credentials = json_decode(file_get_contents(ENHANCAD_PLUGIN_DIR . 'includes/setup/json/client-secrets.json'), true);
|
1129 |
$url = 'https://www.googleapis.com/oauth2/v4/token';
|
1130 |
-
$header = array("
|
1131 |
$clientId = $credentials['web']['client_id'];
|
1132 |
$clientSecret = $credentials['web']['client_secret'];
|
1133 |
|
@@ -1141,7 +1141,7 @@ if(!class_exists('Conversios_Onboarding_ApiCall') ){
|
|
1141 |
'timeout' => 10000,
|
1142 |
'headers' =>$header,
|
1143 |
'method' => 'POST',
|
1144 |
-
'body' => $data
|
1145 |
);
|
1146 |
$request = wp_remote_post(esc_url_raw($url), $args);
|
1147 |
// Retrieve information
|
1127 |
if (isset($result->error) && $result->error) {
|
1128 |
$credentials = json_decode(file_get_contents(ENHANCAD_PLUGIN_DIR . 'includes/setup/json/client-secrets.json'), true);
|
1129 |
$url = 'https://www.googleapis.com/oauth2/v4/token';
|
1130 |
+
$header = array("Content-Type" => "application/json");
|
1131 |
$clientId = $credentials['web']['client_id'];
|
1132 |
$clientSecret = $credentials['web']['client_secret'];
|
1133 |
|
1141 |
'timeout' => 10000,
|
1142 |
'headers' =>$header,
|
1143 |
'method' => 'POST',
|
1144 |
+
'body' => wp_json_encode($data)
|
1145 |
);
|
1146 |
$request = wp_remote_post(esc_url_raw($url), $args);
|
1147 |
// Retrieve information
|
enhanced-ecommerce-google-analytics.php
CHANGED
@@ -15,7 +15,7 @@
|
|
15 |
* Plugin Name: Conversios.io - Google Analytics and Google Shopping plugin for WooCommerce
|
16 |
* Plugin URI: https://www.tatvic.com/tatvic-labs/woocommerce-extension/
|
17 |
* Description: Automates eCommerce tracking in Google Analytics, dynamic remarkting in Google Ads, and provides complete Google Shopping features.
|
18 |
-
* Version: 4.6.
|
19 |
* Author: Tatvic
|
20 |
* Author URI: www.tatvic.com
|
21 |
* License: GPL-2.0+
|
@@ -37,7 +37,7 @@ if ( ! defined( 'WPINC' ) ) {
|
|
37 |
* Start at version 1.0.0 and use SemVer - https://semver.org
|
38 |
* Rename this for your plugin and update it as you release new versions.
|
39 |
*/
|
40 |
-
define( 'PLUGIN_TVC_VERSION', '4.6.
|
41 |
$fullName = plugin_basename( __FILE__ );
|
42 |
$dir = str_replace('/enhanced-ecommerce-google-analytics.php','',$fullName);
|
43 |
if ( ! defined( 'ENHANCAD_PLUGIN_NAME' ) ) {
|
15 |
* Plugin Name: Conversios.io - Google Analytics and Google Shopping plugin for WooCommerce
|
16 |
* Plugin URI: https://www.tatvic.com/tatvic-labs/woocommerce-extension/
|
17 |
* Description: Automates eCommerce tracking in Google Analytics, dynamic remarkting in Google Ads, and provides complete Google Shopping features.
|
18 |
+
* Version: 4.6.9
|
19 |
* Author: Tatvic
|
20 |
* Author URI: www.tatvic.com
|
21 |
* License: GPL-2.0+
|
37 |
* Start at version 1.0.0 and use SemVer - https://semver.org
|
38 |
* Rename this for your plugin and update it as you release new versions.
|
39 |
*/
|
40 |
+
define( 'PLUGIN_TVC_VERSION', '4.6.9' );
|
41 |
$fullName = plugin_basename( __FILE__ );
|
42 |
$dir = str_replace('/enhanced-ecommerce-google-analytics.php','',$fullName);
|
43 |
if ( ! defined( 'ENHANCAD_PLUGIN_NAME' ) ) {
|
includes/setup/CustomApi.php
CHANGED
@@ -742,7 +742,7 @@ class CustomApi{
|
|
742 |
if (isset($result->error) && $result->error) {
|
743 |
$credentials = json_decode(file_get_contents(ENHANCAD_PLUGIN_DIR . 'includes/setup/json/client-secrets.json'), true);
|
744 |
$url = 'https://www.googleapis.com/oauth2/v4/token';
|
745 |
-
$header = array("
|
746 |
$clientId = $credentials['web']['client_id'];
|
747 |
$clientSecret = $credentials['web']['client_secret'];
|
748 |
|
@@ -756,7 +756,7 @@ class CustomApi{
|
|
756 |
'timeout' => 10000,
|
757 |
'headers' =>$header,
|
758 |
'method' => 'POST',
|
759 |
-
'body' => $data
|
760 |
);
|
761 |
$request = wp_remote_post(esc_url_raw($url), $args);
|
762 |
// Retrieve information
|
@@ -776,11 +776,6 @@ class CustomApi{
|
|
776 |
public function siteVerificationToken($postData) {
|
777 |
try {
|
778 |
$url = $this->apiDomain . '/gmc/site-verification-token';
|
779 |
-
$header = array("Authorization: Bearer MTIzNA==",
|
780 |
-
"Content-Type" => "application/json",
|
781 |
-
"AccessToken:" . $this->generateAccessToken($this->get_tvc_access_token(), $this->get_tvc_refresh_token())
|
782 |
-
);
|
783 |
-
|
784 |
$data = [
|
785 |
'merchant_id' => sanitize_text_field($postData['merchant_id']),
|
786 |
'website' => sanitize_text_field($postData['website_url']),
|
@@ -789,12 +784,16 @@ class CustomApi{
|
|
789 |
];
|
790 |
|
791 |
$args = array(
|
792 |
-
'
|
|
|
|
|
|
|
|
|
|
|
793 |
'method' => 'POST',
|
794 |
'body' => wp_json_encode($data)
|
795 |
);
|
796 |
$result = $this->tc_wp_remot_call_post(esc_url_raw($url), $args);
|
797 |
-
|
798 |
$return = new \stdClass();
|
799 |
if($result->status == 200){
|
800 |
$return->status = $result->status;
|
@@ -824,11 +823,6 @@ class CustomApi{
|
|
824 |
public function siteVerification($postData) {
|
825 |
try {
|
826 |
$url = $this->apiDomain . '/gmc/site-verification';
|
827 |
-
$header = array("Authorization: Bearer MTIzNA==",
|
828 |
-
"Content-Type" => "application/json",
|
829 |
-
"AccessToken:" . $this->generateAccessToken($this->get_tvc_access_token(), $this->get_tvc_refresh_token())
|
830 |
-
);
|
831 |
-
|
832 |
$data = [
|
833 |
'merchant_id' => sanitize_text_field($postData['merchant_id']),
|
834 |
'website' => esc_url_raw($postData['website_url']),
|
@@ -839,7 +833,11 @@ class CustomApi{
|
|
839 |
|
840 |
$args = array(
|
841 |
'timeout' => 10000,
|
842 |
-
'headers'
|
|
|
|
|
|
|
|
|
843 |
'method' => 'POST',
|
844 |
'body' => wp_json_encode($data)
|
845 |
);
|
@@ -848,8 +846,6 @@ class CustomApi{
|
|
848 |
$response_code = wp_remote_retrieve_response_code($request);
|
849 |
$response_message = wp_remote_retrieve_response_message($request);
|
850 |
$result = json_decode(wp_remote_retrieve_body($request));
|
851 |
-
|
852 |
-
|
853 |
$return = new \stdClass();
|
854 |
if ((isset($result->error) && $result->error == '')) {
|
855 |
|
742 |
if (isset($result->error) && $result->error) {
|
743 |
$credentials = json_decode(file_get_contents(ENHANCAD_PLUGIN_DIR . 'includes/setup/json/client-secrets.json'), true);
|
744 |
$url = 'https://www.googleapis.com/oauth2/v4/token';
|
745 |
+
$header = array("Content-Type" => "application/json");
|
746 |
$clientId = $credentials['web']['client_id'];
|
747 |
$clientSecret = $credentials['web']['client_secret'];
|
748 |
|
756 |
'timeout' => 10000,
|
757 |
'headers' =>$header,
|
758 |
'method' => 'POST',
|
759 |
+
'body' => wp_json_encode($data)
|
760 |
);
|
761 |
$request = wp_remote_post(esc_url_raw($url), $args);
|
762 |
// Retrieve information
|
776 |
public function siteVerificationToken($postData) {
|
777 |
try {
|
778 |
$url = $this->apiDomain . '/gmc/site-verification-token';
|
|
|
|
|
|
|
|
|
|
|
779 |
$data = [
|
780 |
'merchant_id' => sanitize_text_field($postData['merchant_id']),
|
781 |
'website' => sanitize_text_field($postData['website_url']),
|
784 |
];
|
785 |
|
786 |
$args = array(
|
787 |
+
'timeout' => 10000,
|
788 |
+
'headers' => array(
|
789 |
+
'Authorization' => "Bearer MTIzNA==",
|
790 |
+
'Content-Type' => 'application/json',
|
791 |
+
'AccessToken' => $this->generateAccessToken($this->get_tvc_access_token(), $this->get_tvc_refresh_token())
|
792 |
+
),
|
793 |
'method' => 'POST',
|
794 |
'body' => wp_json_encode($data)
|
795 |
);
|
796 |
$result = $this->tc_wp_remot_call_post(esc_url_raw($url), $args);
|
|
|
797 |
$return = new \stdClass();
|
798 |
if($result->status == 200){
|
799 |
$return->status = $result->status;
|
823 |
public function siteVerification($postData) {
|
824 |
try {
|
825 |
$url = $this->apiDomain . '/gmc/site-verification';
|
|
|
|
|
|
|
|
|
|
|
826 |
$data = [
|
827 |
'merchant_id' => sanitize_text_field($postData['merchant_id']),
|
828 |
'website' => esc_url_raw($postData['website_url']),
|
833 |
|
834 |
$args = array(
|
835 |
'timeout' => 10000,
|
836 |
+
'headers' => array(
|
837 |
+
'Authorization' => "Bearer MTIzNA==",
|
838 |
+
'Content-Type' => 'application/json',
|
839 |
+
'AccessToken' => $this->generateAccessToken($this->get_tvc_access_token(), $this->get_tvc_refresh_token())
|
840 |
+
),
|
841 |
'method' => 'POST',
|
842 |
'body' => wp_json_encode($data)
|
843 |
);
|
846 |
$response_code = wp_remote_retrieve_response_code($request);
|
847 |
$response_message = wp_remote_retrieve_response_message($request);
|
848 |
$result = json_decode(wp_remote_retrieve_body($request));
|
|
|
|
|
849 |
$return = new \stdClass();
|
850 |
if ((isset($result->error) && $result->error == '')) {
|
851 |
|
readme.txt
CHANGED
@@ -8,8 +8,8 @@ Author: Tatvic
|
|
8 |
Requires at least: 3.5.0
|
9 |
Tested up to: 5.9.1
|
10 |
Requires PHP: 5.6 or Higher
|
11 |
-
Stable tag: 4.6.
|
12 |
-
Version: 4.6.
|
13 |
License: GPLv3
|
14 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
15 |
|
@@ -379,6 +379,9 @@ You can resolve the duplication of data by removing the manually implemented GA
|
|
379 |
|
380 |
|
381 |
== Changelog ==
|
|
|
|
|
|
|
382 |
= 4.6.8 - 17/03/2022 =
|
383 |
* New: In this release, we have add GA4 dashboard with important e-commerce reports.
|
384 |
|
8 |
Requires at least: 3.5.0
|
9 |
Tested up to: 5.9.1
|
10 |
Requires PHP: 5.6 or Higher
|
11 |
+
Stable tag: 4.6.9
|
12 |
+
Version: 4.6.9
|
13 |
License: GPLv3
|
14 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
15 |
|
379 |
|
380 |
|
381 |
== Changelog ==
|
382 |
+
= 4.6.9 - 21/03/2022 =
|
383 |
+
* Fix: - Site verification issue for some users.
|
384 |
+
|
385 |
= 4.6.8 - 17/03/2022 =
|
386 |
* New: In this release, we have add GA4 dashboard with important e-commerce reports.
|
387 |
|