File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
plugins/web-worker-offloading/third-party Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -29,17 +29,14 @@ function plwwo_woocommerce_configure( $configuration ): array {
29
29
$ configuration ['forward ' ][] = 'dataLayer.push ' ;
30
30
$ configuration ['forward ' ][] = 'gtag ' ;
31
31
32
- $ configuration ['mainWindowAccessors ' ][] = 'wp ' ; // Because woocommerce-google-analytics-integration needs to access wp.i18n.
33
- $ configuration ['mainWindowAccessors ' ][] = 'ga4w ' ; // Because woocommerce-google-analytics-integration needs to access window.ga4w.
34
-
35
32
return $ configuration ;
36
33
}
37
34
add_filter ( 'plwwo_configuration ' , 'plwwo_woocommerce_configure ' );
38
35
39
36
plwwo_mark_scripts_for_offloading (
37
+ // Note: 'woocommerce-google-analytics-integration' is intentionally not included because for some reason events like add_to_cart don't get tracked.
40
38
array (
41
39
'google-tag-manager ' ,
42
- 'woocommerce-google-analytics-integration ' ,
43
40
'woocommerce-google-analytics-integration-gtag ' ,
44
41
)
45
42
);
You can’t perform that action at this time.
0 commit comments