WooCommerce Google Analytics Integration - Version 1.5.12

Version Description

  • 2022-07-27 =
  • Tweak - WC 6.8 compatibility.
Download this release

Release Info

Developer automattic
Plugin Icon 128x128 WooCommerce Google Analytics Integration
Version 1.5.12
Comparing to
See all releases

Code changes from version 1.5.11 to 1.5.12

changelog.txt CHANGED
@@ -1,5 +1,8 @@
1
  *** Changelog ***
2
 
 
 
 
3
  = 1.5.11 - 2022-07-06 =
4
  * Tweak - WC 6.7 compatibility.
5
 
1
  *** Changelog ***
2
 
3
+ = 1.5.12 - 2022-07-27 =
4
+ * Tweak - WC 6.8 compatibility.
5
+
6
  = 1.5.11 - 2022-07-06 =
7
  * Tweak - WC 6.7 compatibility.
8
 
composer.lock ADDED
@@ -0,0 +1,307 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_readme": [
3
+ "This file locks the dependencies of your project to a known state",
4
+ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
5
+ "This file is @generated automatically"
6
+ ],
7
+ "content-hash": "e93271c1a3ad85f3c745c20de2bdc8e8",
8
+ "packages": [],
9
+ "packages-dev": [
10
+ {
11
+ "name": "dealerdirect/phpcodesniffer-composer-installer",
12
+ "version": "v0.7.2",
13
+ "source": {
14
+ "type": "git",
15
+ "url": "https://github.com/Dealerdirect/phpcodesniffer-composer-installer.git",
16
+ "reference": "1c968e542d8843d7cd71de3c5c9c3ff3ad71a1db"
17
+ },
18
+ "dist": {
19
+ "type": "zip",
20
+ "url": "https://api.github.com/repos/Dealerdirect/phpcodesniffer-composer-installer/zipball/1c968e542d8843d7cd71de3c5c9c3ff3ad71a1db",
21
+ "reference": "1c968e542d8843d7cd71de3c5c9c3ff3ad71a1db",
22
+ "shasum": ""
23
+ },
24
+ "require": {
25
+ "composer-plugin-api": "^1.0 || ^2.0",
26
+ "php": ">=5.3",
27
+ "squizlabs/php_codesniffer": "^2.0 || ^3.1.0 || ^4.0"
28
+ },
29
+ "require-dev": {
30
+ "composer/composer": "*",
31
+ "php-parallel-lint/php-parallel-lint": "^1.3.1",
32
+ "phpcompatibility/php-compatibility": "^9.0"
33
+ },
34
+ "type": "composer-plugin",
35
+ "extra": {
36
+ "class": "Dealerdirect\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\Plugin"
37
+ },
38
+ "autoload": {
39
+ "psr-4": {
40
+ "Dealerdirect\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\": "src/"
41
+ }
42
+ },
43
+ "notification-url": "https://packagist.org/downloads/",
44
+ "license": [
45
+ "MIT"
46
+ ],
47
+ "authors": [
48
+ {
49
+ "name": "Franck Nijhof",
50
+ "email": "franck.nijhof@dealerdirect.com",
51
+ "homepage": "http://www.frenck.nl",
52
+ "role": "Developer / IT Manager"
53
+ },
54
+ {
55
+ "name": "Contributors",
56
+ "homepage": "https://github.com/Dealerdirect/phpcodesniffer-composer-installer/graphs/contributors"
57
+ }
58
+ ],
59
+ "description": "PHP_CodeSniffer Standards Composer Installer Plugin",
60
+ "homepage": "http://www.dealerdirect.com",
61
+ "keywords": [
62
+ "PHPCodeSniffer",
63
+ "PHP_CodeSniffer",
64
+ "code quality",
65
+ "codesniffer",
66
+ "composer",
67
+ "installer",
68
+ "phpcbf",
69
+ "phpcs",
70
+ "plugin",
71
+ "qa",
72
+ "quality",
73
+ "standard",
74
+ "standards",
75
+ "style guide",
76
+ "stylecheck",
77
+ "tests"
78
+ ],
79
+ "support": {
80
+ "issues": "https://github.com/dealerdirect/phpcodesniffer-composer-installer/issues",
81
+ "source": "https://github.com/dealerdirect/phpcodesniffer-composer-installer"
82
+ },
83
+ "time": "2022-02-04T12:51:07+00:00"
84
+ },
85
+ {
86
+ "name": "exussum12/coverage-checker",
87
+ "version": "1.0.2",
88
+ "source": {
89
+ "type": "git",
90
+ "url": "https://github.com/exussum12/coverageChecker.git",
91
+ "reference": "544984601cf563003b36c8ed9a5a61a40daafa93"
92
+ },
93
+ "dist": {
94
+ "type": "zip",
95
+ "url": "https://api.github.com/repos/exussum12/coverageChecker/zipball/544984601cf563003b36c8ed9a5a61a40daafa93",
96
+ "reference": "544984601cf563003b36c8ed9a5a61a40daafa93",
97
+ "shasum": ""
98
+ },
99
+ "require": {
100
+ "ext-json": "*",
101
+ "ext-xmlreader": "*",
102
+ "nikic/php-parser": "^3.1||^4.0",
103
+ "php": ">=7.0"
104
+ },
105
+ "require-dev": {
106
+ "phpunit/phpunit": "^6.5 || ^7.0 || ^8.0 || ^9.0"
107
+ },
108
+ "bin": [
109
+ "bin/diffFilter"
110
+ ],
111
+ "type": "library",
112
+ "autoload": {
113
+ "psr-4": {
114
+ "exussum12\\CoverageChecker\\": "src/",
115
+ "exussum12\\CoverageChecker\\tests\\": "tests/"
116
+ }
117
+ },
118
+ "notification-url": "https://packagist.org/downloads/",
119
+ "license": [
120
+ "MIT"
121
+ ],
122
+ "authors": [
123
+ {
124
+ "name": "Scott Dutton",
125
+ "email": "scott@exussum.co.uk"
126
+ }
127
+ ],
128
+ "description": "Allows checking the code coverage of a single pull request",
129
+ "support": {
130
+ "issues": "https://github.com/exussum12/coverageChecker/issues",
131
+ "source": "https://github.com/exussum12/coverageChecker/tree/1.0.2"
132
+ },
133
+ "time": "2022-01-19T14:42:51+00:00"
134
+ },
135
+ {
136
+ "name": "nikic/php-parser",
137
+ "version": "v4.14.0",
138
+ "source": {
139
+ "type": "git",
140
+ "url": "https://github.com/nikic/PHP-Parser.git",
141
+ "reference": "34bea19b6e03d8153165d8f30bba4c3be86184c1"
142
+ },
143
+ "dist": {
144
+ "type": "zip",
145
+ "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/34bea19b6e03d8153165d8f30bba4c3be86184c1",
146
+ "reference": "34bea19b6e03d8153165d8f30bba4c3be86184c1",
147
+ "shasum": ""
148
+ },
149
+ "require": {
150
+ "ext-tokenizer": "*",
151
+ "php": ">=7.0"
152
+ },
153
+ "require-dev": {
154
+ "ircmaxell/php-yacc": "^0.0.7",
155
+ "phpunit/phpunit": "^6.5 || ^7.0 || ^8.0 || ^9.0"
156
+ },
157
+ "bin": [
158
+ "bin/php-parse"
159
+ ],
160
+ "type": "library",
161
+ "extra": {
162
+ "branch-alias": {
163
+ "dev-master": "4.9-dev"
164
+ }
165
+ },
166
+ "autoload": {
167
+ "psr-4": {
168
+ "PhpParser\\": "lib/PhpParser"
169
+ }
170
+ },
171
+ "notification-url": "https://packagist.org/downloads/",
172
+ "license": [
173
+ "BSD-3-Clause"
174
+ ],
175
+ "authors": [
176
+ {
177
+ "name": "Nikita Popov"
178
+ }
179
+ ],
180
+ "description": "A PHP parser written in PHP",
181
+ "keywords": [
182
+ "parser",
183
+ "php"
184
+ ],
185
+ "support": {
186
+ "issues": "https://github.com/nikic/PHP-Parser/issues",
187
+ "source": "https://github.com/nikic/PHP-Parser/tree/v4.14.0"
188
+ },
189
+ "time": "2022-05-31T20:59:12+00:00"
190
+ },
191
+ {
192
+ "name": "squizlabs/php_codesniffer",
193
+ "version": "3.7.1",
194
+ "source": {
195
+ "type": "git",
196
+ "url": "https://github.com/squizlabs/PHP_CodeSniffer.git",
197
+ "reference": "1359e176e9307e906dc3d890bcc9603ff6d90619"
198
+ },
199
+ "dist": {
200
+ "type": "zip",
201
+ "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/1359e176e9307e906dc3d890bcc9603ff6d90619",
202
+ "reference": "1359e176e9307e906dc3d890bcc9603ff6d90619",
203
+ "shasum": ""
204
+ },
205
+ "require": {
206
+ "ext-simplexml": "*",
207
+ "ext-tokenizer": "*",
208
+ "ext-xmlwriter": "*",
209
+ "php": ">=5.4.0"
210
+ },
211
+ "require-dev": {
212
+ "phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0"
213
+ },
214
+ "bin": [
215
+ "bin/phpcs",
216
+ "bin/phpcbf"
217
+ ],
218
+ "type": "library",
219
+ "extra": {
220
+ "branch-alias": {
221
+ "dev-master": "3.x-dev"
222
+ }
223
+ },
224
+ "notification-url": "https://packagist.org/downloads/",
225
+ "license": [
226
+ "BSD-3-Clause"
227
+ ],
228
+ "authors": [
229
+ {
230
+ "name": "Greg Sherwood",
231
+ "role": "lead"
232
+ }
233
+ ],
234
+ "description": "PHP_CodeSniffer tokenizes PHP, JavaScript and CSS files and detects violations of a defined set of coding standards.",
235
+ "homepage": "https://github.com/squizlabs/PHP_CodeSniffer",
236
+ "keywords": [
237
+ "phpcs",
238
+ "standards"
239
+ ],
240
+ "support": {
241
+ "issues": "https://github.com/squizlabs/PHP_CodeSniffer/issues",
242
+ "source": "https://github.com/squizlabs/PHP_CodeSniffer",
243
+ "wiki": "https://github.com/squizlabs/PHP_CodeSniffer/wiki"
244
+ },
245
+ "time": "2022-06-18T07:21:10+00:00"
246
+ },
247
+ {
248
+ "name": "wp-coding-standards/wpcs",
249
+ "version": "2.3.0",
250
+ "source": {
251
+ "type": "git",
252
+ "url": "https://github.com/WordPress/WordPress-Coding-Standards.git",
253
+ "reference": "7da1894633f168fe244afc6de00d141f27517b62"
254
+ },
255
+ "dist": {
256
+ "type": "zip",
257
+ "url": "https://api.github.com/repos/WordPress/WordPress-Coding-Standards/zipball/7da1894633f168fe244afc6de00d141f27517b62",
258
+ "reference": "7da1894633f168fe244afc6de00d141f27517b62",
259
+ "shasum": ""
260
+ },
261
+ "require": {
262
+ "php": ">=5.4",
263
+ "squizlabs/php_codesniffer": "^3.3.1"
264
+ },
265
+ "require-dev": {
266
+ "dealerdirect/phpcodesniffer-composer-installer": "^0.5 || ^0.6",
267
+ "phpcompatibility/php-compatibility": "^9.0",
268
+ "phpcsstandards/phpcsdevtools": "^1.0",
269
+ "phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0"
270
+ },
271
+ "suggest": {
272
+ "dealerdirect/phpcodesniffer-composer-installer": "^0.6 || This Composer plugin will sort out the PHPCS 'installed_paths' automatically."
273
+ },
274
+ "type": "phpcodesniffer-standard",
275
+ "notification-url": "https://packagist.org/downloads/",
276
+ "license": [
277
+ "MIT"
278
+ ],
279
+ "authors": [
280
+ {
281
+ "name": "Contributors",
282
+ "homepage": "https://github.com/WordPress/WordPress-Coding-Standards/graphs/contributors"
283
+ }
284
+ ],
285
+ "description": "PHP_CodeSniffer rules (sniffs) to enforce WordPress coding conventions",
286
+ "keywords": [
287
+ "phpcs",
288
+ "standards",
289
+ "wordpress"
290
+ ],
291
+ "support": {
292
+ "issues": "https://github.com/WordPress/WordPress-Coding-Standards/issues",
293
+ "source": "https://github.com/WordPress/WordPress-Coding-Standards",
294
+ "wiki": "https://github.com/WordPress/WordPress-Coding-Standards/wiki"
295
+ },
296
+ "time": "2020-05-13T23:57:56+00:00"
297
+ }
298
+ ],
299
+ "aliases": [],
300
+ "minimum-stability": "stable",
301
+ "stability-flags": [],
302
+ "prefer-stable": false,
303
+ "prefer-lowest": false,
304
+ "platform": [],
305
+ "platform-dev": [],
306
+ "plugin-api-version": "2.1.0"
307
+ }
phpcs.xml.dist ADDED
@@ -0,0 +1,100 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <ruleset name="WordPress Coding Standards for Plugins">
3
+ <description>Generally-applicable sniffs for WordPress plugins</description>
4
+
5
+ <!-- Set the minimum WP version -->
6
+ <config name="minimum_supported_wp_version" value="5.8"/>
7
+
8
+ <rule ref="WordPress">
9
+ <!-- We don't require conforming to WP file naming -->
10
+ <exclude name="WordPress.Files.FileName"/>
11
+
12
+ <!-- These comments are unnecessary -->
13
+ <exclude name="Generic.Commenting.DocComment.MissingShort"/>
14
+ <exclude name="Squiz.Commenting.FileComment"/>
15
+ <exclude name="Squiz.Commenting.FunctionComment.MissingParamComment"/>
16
+ <exclude name="Squiz.Commenting.FunctionComment.ParamCommentFullStop"/>
17
+ <exclude name="Squiz.Commenting.InlineComment.InvalidEndChar"/>
18
+ <exclude name="Squiz.Commenting.LongConditionClosingComment"/>
19
+
20
+ <!-- No thanks -->
21
+ <exclude name="WordPress.PHP.DisallowShortTernary"/>
22
+ <exclude name="WordPress.PHP.YodaConditions.NotYoda"/>
23
+
24
+ <!-- These overrides are useful for code hinting -->
25
+ <exclude name="Generic.CodeAnalysis.UselessOverridingMethod.Found"/>
26
+
27
+ <!-- We like short array syntax -->
28
+ <exclude name="Generic.Arrays.DisallowShortArraySyntax"/>
29
+
30
+ <!-- Multiple throws tags are fine -->
31
+ <exclude name="Squiz.Commenting.FunctionCommentThrowTag.WrongNumber"/>
32
+ </rule>
33
+
34
+ <!-- Include some other sniffs we want to enforce. -->
35
+ <rule ref="Generic.Arrays.DisallowLongArraySyntax"/>
36
+ <rule ref="Generic.VersionControl.GitMergeConflict"/>
37
+ <rule ref="Generic.WhiteSpace.SpreadOperatorSpacingAfter"/>
38
+ <rule ref="PSR12.Classes.AnonClassDeclaration"/>
39
+ <rule ref="PSR12.Classes.ClassInstantiation"/>
40
+ <rule ref="PSR12.Files.ImportStatement"/>
41
+ <rule ref="PSR12.Functions.NullableTypeDeclaration"/>
42
+ <rule ref="PSR12.Functions.ReturnTypeDeclaration"/>
43
+ <rule ref="PSR12.Properties.ConstantVisibility"/>
44
+ <rule ref="PSR12.Traits.UseDeclaration"/>
45
+ <rule ref="Squiz.Classes">
46
+ <exclude name="Squiz.Classes.ClassDeclaration.OpenBraceNewLine"/>
47
+ <exclude name="Squiz.Classes.ClassDeclaration.CloseBraceSameLine"/>
48
+ </rule>
49
+ <rule ref="Squiz.WhiteSpace.FunctionOpeningBraceSpace"/>
50
+
51
+ <!-- Set the appropriate text domain. -->
52
+ <rule ref="WordPress.WP.I18n">
53
+ <properties>
54
+ <property name="text_domain" type="array" value="woocommerce-google-analytics-integration"/>
55
+ </properties>
56
+ </rule>
57
+
58
+ <!-- This rule flags space indents in HTML tags, which are generally OK. -->
59
+ <rule ref="WordPress.WhiteSpace.PrecisionAlignment">
60
+ <exclude name="WordPress.WhiteSpace.PrecisionAlignment.Found"/>
61
+ </rule>
62
+
63
+ <!-- We allow the use of / in hooks -->
64
+ <rule ref="WordPress.NamingConventions.ValidHookName">
65
+ <properties>
66
+ <property name="additionalWordDelimiters" value="/"/>
67
+ </properties>
68
+ </rule>
69
+
70
+ <!-- We don't use these functions for purposes of obfuscation -->
71
+ <rule ref="WordPress.PHP.DiscouragedPHPFunctions">
72
+ <properties>
73
+ <property name="exclude" type="array">
74
+ <element value="obfuscation"/>
75
+ </property>
76
+ </properties>
77
+ </rule>
78
+
79
+ <!-- We'd rather use native functions -->
80
+ <rule ref="WordPress.WP.AlternativeFunctions">
81
+ <properties>
82
+ <property name="exclude" type="array">
83
+ <element value="json_encode"/>
84
+ <element value="rand"/>
85
+ </property>
86
+ </properties>
87
+ </rule>
88
+
89
+ <!-- Check PHP files -->
90
+ <arg name="extensions" value="php"/>
91
+ <file>.</file>
92
+
93
+ <!-- Show progress and sniff codes in all reports -->
94
+ <arg value="ps"/>
95
+
96
+ <!-- Exclusion patterns -->
97
+ <exclude-pattern>*/node_modules/*</exclude-pattern>
98
+ <exclude-pattern>*/vendor/*</exclude-pattern>
99
+ <exclude-pattern>./assets/*</exclude-pattern>
100
+ </ruleset>
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: woocommerce, automattic, claudiosanches, bor0, royho, laurendaviss
3
  Tags: woocommerce, google analytics
4
  Requires at least: 3.9
5
  Tested up to: 5.9
6
- Stable tag: 1.5.11
7
  License: GPLv3
8
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
9
 
@@ -60,6 +60,9 @@ Exact wording depends on the national data privacy laws and should be adjusted.
60
 
61
  == Changelog ==
62
 
 
 
 
63
  = 1.5.11 - 2022-07-06 =
64
  * Tweak - WC 6.7 compatibility.
65
 
3
  Tags: woocommerce, google analytics
4
  Requires at least: 3.9
5
  Tested up to: 5.9
6
+ Stable tag: 1.5.12
7
  License: GPLv3
8
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
9
 
60
 
61
  == Changelog ==
62
 
63
+ = 1.5.12 - 2022-07-27 =
64
+ * Tweak - WC 6.8 compatibility.
65
+
66
  = 1.5.11 - 2022-07-06 =
67
  * Tweak - WC 6.7 compatibility.
68
 
woocommerce-google-analytics-integration.php CHANGED
@@ -5,9 +5,9 @@
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.11
9
  * WC requires at least: 3.2
10
- * WC tested up to: 6.7
11
  * Tested up to: 6.0
12
  * License: GPLv2 or later
13
  * Text Domain: woocommerce-google-analytics-integration
@@ -20,7 +20,7 @@ if ( ! defined( 'ABSPATH' ) ) {
20
 
21
  if ( ! class_exists( 'WC_Google_Analytics_Integration' ) ) {
22
 
23
- define( 'WC_GOOGLE_ANALYTICS_INTEGRATION_VERSION', '1.5.11' ); // WRCS: DEFINED_VERSION.
24
 
25
  // Maybe show the GA Pro notice on plugin activation.
26
  register_activation_hook(
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.12
9
  * WC requires at least: 3.2
10
+ * WC tested up to: 6.8
11
  * Tested up to: 6.0
12
  * License: GPLv2 or later
13
  * Text Domain: woocommerce-google-analytics-integration
20
 
21
  if ( ! class_exists( 'WC_Google_Analytics_Integration' ) ) {
22
 
23
+ define( 'WC_GOOGLE_ANALYTICS_INTEGRATION_VERSION', '1.5.12' ); // WRCS: DEFINED_VERSION.
24
 
25
  // Maybe show the GA Pro notice on plugin activation.
26
  register_activation_hook(