Evaluating feature key from different types


    const TAG_KEY = "YOUR-PRODUCT-TAG-KEY-HERE";
    (function (w, d, u, n, k, c) {w[n]=w[n]||function () {(w[n].q = w[n].q || []).push(arguments);};
        w[n].k = k;w[n].c = c;var s = d.createElement('script');s.async = true;s.src = u + '?k=' + k;
        var h = d.getElementsByTagName('script')[0];h.parentNode.insertBefore(s, h);
    })(window, document, 'https://script.eucerahive.io/web/sdk/eucera.js', 'eucera', TAG_KEY);

    //listen to Eucera ready and evaluate feature flag values
    eucera('when', 'ready', () => {

      // boolean flag, default true
       const showEarlyAccess = eucera.getVariant('showEarlyAccess', true);

        // numeric flag - can be integer or float, assigning the default value as 1.2
       const showReleaseVersion = eucera.getVariant('showReleaseVersion', 1.2);

    // string flag, assigning the default value as 'freemium'
       const packageName = eucera.getVariant('packageName', 'freemium');
    });