Add cookie tracking settings

[MAILPOET-1856]
This commit is contained in:
Pavel Dohnal
2019-05-14 10:01:43 +02:00
committed by M. Shull
parent 29253bfe7e
commit 08851ef0a3
5 changed files with 33 additions and 4 deletions

View File

@@ -30,7 +30,8 @@ function RevenueTrackingPermission() {
const submit = (allowed) => {
setLoading(true);
const settings = {
accept_cookie_revenue_tracking: allowed ? 1 : 0,
'woocommerce.accept_cookie_revenue_tracking.enabled': allowed ? 1 : 0,
'woocommerce.accept_cookie_revenue_tracking.set': 1,
};
updateSettings(settings).then(finishWizard);
};