diff --git a/src/experiments/index.js b/src/experiments/index.js index 89c6f7e1e3b..ca383176862 100644 --- a/src/experiments/index.js +++ b/src/experiments/index.js @@ -4,17 +4,45 @@ import { withDispatch, withSelect } from '@wordpress/data'; import { compose } from '@wordpress/compose'; import { Button } from '@wordpress/components'; - +import { OPTIONS_STORE_NAME } from '@woocommerce/data'; /** * Internal dependencies */ import { STORE_KEY } from './data/constants'; import './data'; -function Experiments( { experiments, toggleExperiment } ) { +function Experiments( { + experiments, + toggleExperiment, + isTrackingEnabled, + isResolving, +} ) { + if ( isResolving ) { + return null; + } return (
+ The following list might not be complete without tracking
+ enabled.
+ Please visit
+
+ WooCommerce → Settings → Advanced →
+ Woocommerce.com
+
+ and check{ ' ' }
+ Allow usage of WooCommerce to be tracked.
+