Version Description
- 2022-11-03 =
- Add - Declare compatibility for High Performance Order Storage.
- Tweak - WC 7.1 compatibility.
- Tweak - WP 6.1 compatibility.
Download this release
Release Info
Developer | automattic |
Plugin | WooCommerce Google Analytics Integration |
Version | 1.5.16 |
Comparing to | |
See all releases |
Code changes from version 1.5.15 to 1.5.16
- changelog.txt +5 -0
- readme.txt +7 -2
- woocommerce-google-analytics-integration.php +16 -4
changelog.txt
CHANGED
@@ -1,5 +1,10 @@
|
|
1 |
*** Changelog ***
|
2 |
|
|
|
|
|
|
|
|
|
|
|
3 |
= 1.5.15 - 2022-10-04 =
|
4 |
* Add - Support for a Google Tag ID.
|
5 |
* Tweak - WC 7.0 compatibility.
|
1 |
*** Changelog ***
|
2 |
|
3 |
+
= 1.5.16 - 2022-11-03 =
|
4 |
+
* Add - Declare compatibility for High Performance Order Storage.
|
5 |
+
* Tweak - WC 7.1 compatibility.
|
6 |
+
* Tweak - WP 6.1 compatibility.
|
7 |
+
|
8 |
= 1.5.15 - 2022-10-04 =
|
9 |
* Add - Support for a Google Tag ID.
|
10 |
* Tweak - WC 7.0 compatibility.
|
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
Contributors: woocommerce, automattic, claudiosanches, bor0, royho, laurendavissmith001, c-shultz
|
3 |
Tags: woocommerce, google analytics
|
4 |
Requires at least: 3.9
|
5 |
-
Tested up to:
|
6 |
-
Stable tag: 1.5.
|
7 |
License: GPLv3
|
8 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
9 |
|
@@ -60,6 +60,11 @@ Exact wording depends on the national data privacy laws and should be adjusted.
|
|
60 |
|
61 |
== Changelog ==
|
62 |
|
|
|
|
|
|
|
|
|
|
|
63 |
= 1.5.15 - 2022-10-04 =
|
64 |
* Add - Support for a Google Tag ID.
|
65 |
* Tweak - WC 7.0 compatibility.
|
2 |
Contributors: woocommerce, automattic, claudiosanches, bor0, royho, laurendavissmith001, c-shultz
|
3 |
Tags: woocommerce, google analytics
|
4 |
Requires at least: 3.9
|
5 |
+
Tested up to: 6.1
|
6 |
+
Stable tag: 1.5.16
|
7 |
License: GPLv3
|
8 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
9 |
|
60 |
|
61 |
== Changelog ==
|
62 |
|
63 |
+
= 1.5.16 - 2022-11-03 =
|
64 |
+
* Add - Declare compatibility for High Performance Order Storage.
|
65 |
+
* Tweak - WC 7.1 compatibility.
|
66 |
+
* Tweak - WP 6.1 compatibility.
|
67 |
+
|
68 |
= 1.5.15 - 2022-10-04 =
|
69 |
* Add - Support for a Google Tag ID.
|
70 |
* Tweak - WC 7.0 compatibility.
|
woocommerce-google-analytics-integration.php
CHANGED
@@ -5,22 +5,24 @@
|
|
5 |
* Description: Allows Google Analytics tracking code to be inserted into WooCommerce store pages.
|
6 |
* Author: WooCommerce
|
7 |
* Author URI: https://woocommerce.com
|
8 |
-
* Version: 1.5.
|
9 |
* WC requires at least: 3.2
|
10 |
-
* WC tested up to: 7.
|
11 |
-
* Tested up to: 6.
|
12 |
* License: GPLv2 or later
|
13 |
* Text Domain: woocommerce-google-analytics-integration
|
14 |
* Domain Path: languages/
|
15 |
*/
|
16 |
|
|
|
|
|
17 |
if ( ! defined( 'ABSPATH' ) ) {
|
18 |
exit;
|
19 |
}
|
20 |
|
21 |
if ( ! class_exists( 'WC_Google_Analytics_Integration' ) ) {
|
22 |
|
23 |
-
define( 'WC_GOOGLE_ANALYTICS_INTEGRATION_VERSION', '1.5.
|
24 |
|
25 |
// Maybe show the GA Pro notice on plugin activation.
|
26 |
register_activation_hook(
|
@@ -30,6 +32,16 @@ if ( ! class_exists( 'WC_Google_Analytics_Integration' ) ) {
|
|
30 |
}
|
31 |
);
|
32 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
/**
|
34 |
* WooCommerce Google Analytics Integration main class.
|
35 |
*/
|
5 |
* Description: Allows Google Analytics tracking code to be inserted into WooCommerce store pages.
|
6 |
* Author: WooCommerce
|
7 |
* Author URI: https://woocommerce.com
|
8 |
+
* Version: 1.5.16
|
9 |
* WC requires at least: 3.2
|
10 |
+
* WC tested up to: 7.1
|
11 |
+
* Tested up to: 6.1
|
12 |
* License: GPLv2 or later
|
13 |
* Text Domain: woocommerce-google-analytics-integration
|
14 |
* Domain Path: languages/
|
15 |
*/
|
16 |
|
17 |
+
use Automattic\WooCommerce\Utilities\FeaturesUtil;
|
18 |
+
|
19 |
if ( ! defined( 'ABSPATH' ) ) {
|
20 |
exit;
|
21 |
}
|
22 |
|
23 |
if ( ! class_exists( 'WC_Google_Analytics_Integration' ) ) {
|
24 |
|
25 |
+
define( 'WC_GOOGLE_ANALYTICS_INTEGRATION_VERSION', '1.5.16' ); // WRCS: DEFINED_VERSION.
|
26 |
|
27 |
// Maybe show the GA Pro notice on plugin activation.
|
28 |
register_activation_hook(
|
32 |
}
|
33 |
);
|
34 |
|
35 |
+
// HPOS compatibility declaration.
|
36 |
+
add_action(
|
37 |
+
'before_woocommerce_init',
|
38 |
+
function () {
|
39 |
+
if ( class_exists( FeaturesUtil::class ) ) {
|
40 |
+
FeaturesUtil::declare_compatibility( 'custom_order_tables', __FILE__ );
|
41 |
+
}
|
42 |
+
}
|
43 |
+
);
|
44 |
+
|
45 |
/**
|
46 |
* WooCommerce Google Analytics Integration main class.
|
47 |
*/
|