File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -27,12 +27,12 @@ public function __construct() {
27
27
*/
28
28
private function init () {
29
29
// WooCommerce
30
- if ( self ::is_wc_active () ) {
30
+ if ( self ::is_wc_active () && Helpers:: is_enhanced_measurement_enabled ( ' revenue ' ) ) {
31
31
new Integrations \WooCommerce ();
32
32
}
33
33
34
34
// Easy Digital Downloads
35
- if ( self ::is_edd_active () ) {
35
+ if ( self ::is_edd_active () && Helpers:: is_enhanced_measurement_enabled ( ' revenue ' ) ) {
36
36
new Integrations \EDD ();
37
37
}
38
38
@@ -47,15 +47,15 @@ private function init() {
47
47
* @return bool
48
48
*/
49
49
public static function is_wc_active () {
50
- return apply_filters ( 'plausible_analytics_integrations_woocommerce ' , function_exists ( 'WC ' ) && Helpers:: is_enhanced_measurement_enabled ( ' revenue ' ) );
50
+ return apply_filters ( 'plausible_analytics_integrations_woocommerce ' , function_exists ( 'WC ' ) );
51
51
}
52
52
53
53
/**
54
54
* Checks if Easy Digital Downloads is installed and activated.
55
55
* @return bool
56
56
*/
57
57
public static function is_edd_active () {
58
- return apply_filters ( 'plausible_analytics_integrations_edd ' , function_exists ( 'EDD ' ) && Helpers:: is_enhanced_measurement_enabled ( ' revenue ' ) );
58
+ return apply_filters ( 'plausible_analytics_integrations_edd ' , function_exists ( 'EDD ' ) );
59
59
}
60
60
61
61
/**
You can’t perform that action at this time.
0 commit comments