How to use the analytics.toggle function in analytics

To help you get started, we’ve selected a few analytics examples, based on popular ways it is used in public projects.

github lbryio / lbry-desktop / src / renderer / redux / actions / settings.js View on Github external
Lbry.settings_get().then(settings => {
      analytics.toggle(settings.share_usage_data);
      dispatch({
        type: ACTIONS.DAEMON_SETTINGS_RECEIVED,
        data: {
          settings,
        },
      });
    });
  };
github lbryio / lbry-desktop / src / ui / redux / actions / settings.js View on Github external
Lbry.settings_get().then(settings => {
      analytics.toggle(settings.share_usage_data);
      dispatch({
        type: ACTIONS.DAEMON_SETTINGS_RECEIVED,
        data: {
          settings,
        },
      });
    });
  };
github lbryio / lbry-desktop / src / renderer / redux / actions / settings.js View on Github external
Lbry.settings_get().then(settings => {
      analytics.toggle(settings.share_usage_data, true);
      dispatch({
        type: ACTIONS.DAEMON_SETTINGS_RECEIVED,
        data: {
          settings,
        },
      });
    });
  };
github lbryio / lbry-desktop / ui / redux / actions / settings.js View on Github external
Lbry.settings_get().then(settings => {
      analytics.toggle(settings.share_usage_data);
      dispatch({
        type: ACTIONS.DAEMON_SETTINGS_RECEIVED,
        data: {
          settings,
        },
      });
    });
  };

analytics

Lightweight analytics library for tracking events, page views, & identifying users. Works with any third party analytics provider via an extendable plugin system.

MIT
Latest version published 6 months ago

Package Health Score

85 / 100
Full package analysis

Similar packages