How to use the react-ga.modalview 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 OriginProtocol / origin / infra / token-transfer-client / src / components / BonusModal.js View on Github external
componentDidUpdate(prevProps, prevState) {
    // Parse server errors for account add
    if (get(prevProps, 'lockupError') !== this.props.lockupError) {
      this.handleServerError(this.props.lockupError)
    }

    if (prevState.modalState !== this.state.modalState) {
      ReactGA.modalview(`/lockup/${this.state.modalState.toLowerCase()}`)
    }
  }
github OriginProtocol / origin / infra / token-transfer-client / src / components / WithdrawModal.js View on Github external
componentDidUpdate(prevProps, prevState) {
    // Parse server errors for account add
    if (get(prevProps, 'accountError') !== this.props.accountError) {
      this.handleServerError(this.props.accountError)
    }
    // Parse server errors for transfer add
    if (get(prevProps, 'transferError') !== this.props.transferError) {
      this.handleServerError(this.props.transferError)
    }
    if (prevState.modalState !== this.state.modalState) {
      ReactGA.modalview(`/withdraw/${this.state.modalState.toLowerCase()}`)
    }
  }
github pokelondon / pintsinthesun / src / app / screens / info / info_component.js View on Github external
constructor(props) {
        super(props);
        this.props = props;

        GA.modalview('/info');
    }
github cncjs / cncjs / src / app / lib / analytics.js View on Github external
modalview: (modalName) => {
        GoogleAnalytics.modalview(modalName);
    },
    event: (args) => {
github mozilla / learning.mozilla.org / mixins / modal-manager.js View on Github external
showModal: function(modalClass, modalProps) {
    ga.modalview(modalClass.displayName);
    this.context.showModal(modalClass, modalProps);
  },
  hideModal: function() {
github OriginProtocol / origin / infra / token-transfer-client / src / components / BonusModal.js View on Github external
componentDidMount() {
    ReactGA.modalview(`/lockup/${this.state.modalState.toLowerCase()}`)
  }
github OriginProtocol / origin / infra / token-transfer-client / src / components / WithdrawModal.js View on Github external
componentDidMount() {
    ReactGA.modalview(`/withdraw/${this.state.modalState.toLowerCase()}`)
  }
github OperationCode / front-end / components / Modal / Modal.js View on Github external
function Modal({
  children,
  className,
  isOpen,
  onRequestClose,
  screenReaderLabel,
  shouldCloseOnOverlayClick,
}) {
  if (process.env.NODE_ENV === 'production') {
    ReactGA.modalview(screenReaderLabel);
  }

  return (
    
      
      <div>{children}</div>
    
  );
}
github pluto-net / scinapse-web-client / app / helpers / handleGA.ts View on Github external
export function trackDialogView(name: string) {
  if (EnvChecker.isProdBrowser()) {
    ReactGA.modalview(name);
  }
}
github OriginProtocol / origin / infra / token-transfer-client / src / components / OtcRequestModal.js View on Github external
componentDidUpdate(prevProps, prevState) {
    if (get(prevProps, 'otcError') !== this.props.otcError) {
      this.handleServerError(this.props.otcError)
    }

    if (prevState.modalState !== this.state.modalState) {
      ReactGA.modalview(`/otcRequest/${this.state.modalState.toLowerCase()}`)
    }
  }