How to use the react-ga.event function in react-ga

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

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github aertslab / SCope / src / components / pages / Geneset.jsx View on Github external
} else {
                    this.setState({loadingMessage: gse.progress.status});
                }
            });
            call.on('end', () => {
                if (DEBUG) console.log('doGeneSetEnrichment end');
                ReactGA.event({
                    category: 'geneset',
                    action: 'enrichment finished',
                    nonInteraction: true
                });
            });
        }, () => {
            BackendAPI.showError();	
        })
        ReactGA.event({
            category: 'geneset',
            action: 'enrichment started'
        });
    }
github aertslab / SCope / src / components / AppSidebar.jsx View on Github external
toggleCpmNormization() {
		let settings = BackendAPI.setSetting('hasCpmNormalization', !this.state.settings.hasCpmNormalization);
		this.setState({ settings: settings });
		ReactGA.event({
			category: 'settings',
			action: 'toggle cpm normalization',
			label: settings.hasCpmNormalization ? 'on' : 'off'
		});
	}
github mozilla / network-pulse / components / bio / bio.jsx View on Github external
handleSocialMediaClick(event, type) {
    ReactGA.event({
      category: `Profile`,
      action: `Social link tap`,
      label: `${this.profileOwnerName} - ${type}`,
      transport: `beacon`
    });
  }
github Angelmmiguel / mmmusic.stream / utils / analytics.js View on Github external
export const logEvent = (category = '', action = '') => {
  if (category && action) {
    ReactGA.event({ category, action });
  }
}
github spinnaker / deck / app / scripts / modules / core / src / pipeline / config / graph / PipelineGraphNode.tsx View on Github external
private handleClick = (): void => {
    ReactGA.event({
      category: `Pipeline Graph (${this.props.isExecution ? 'execution' : 'config'})`,
      action: `Node clicked`,
    });
    this.props.nodeClicked(this.props.node);
  };
github containerum / ui / src / components / Account / CLI / index.js View on Github external
handleClickAnaliticsDownloadCLIAccount() {
        ReactGA.event({
            category: 'UI',
            action: 'UI_account_CLI_download'
        });
    }
    render() {
github pastelsky / bundlephobia / pages / index.js View on Github external
handleSearchSubmit = (value) => {
    Analytics.event({
      category: 'Search',
      action: 'Searched',
      label: value.trim().replace(/@/g, '[at]'),
    })

    Router.push(`/result?p=${value.trim()}`)
  }
github learnapollo / learnapollo / src / index.tsx View on Github external
Smooch.on('widget:opened', () => {
    ReactGA.event(events.SmoochOpened)
  })
github spinnaker / deck / app / scripts / modules / core / src / pipeline / executions / executionGroup / ExecutionGroup.tsx View on Github external
private handleConfigureClicked = (e: React.MouseEvent): void => {
    ReactGA.event({
      category: 'Pipeline',
      action: 'Configure pipeline button clicked',
      label: this.props.group.heading,
    });
    this.configure(this.props.group.config.id);
    e.stopPropagation();
  };