return grantedBy.indexOf(grant) > -1 . if (addToCartFiredAfterRegistration === false) { window.dataLayer.push(ecommerceTransactionEvent);