Skip to main content

React Analytics

If you haven't already, please start with the Analytics Overview below.

React Analytics Callback

interface PollScreenProps {  pollSource: string; // poll url or poll id  flow: OpenPollFlow; // creating poll, or opening existing poll?}const PollScreen: React.FC<PollScreenProps> = ({ pollSource, flow }) => {  const didReceiveAnalyticsEvent = (event: AnalyticsEvent) => {    // send events to Google Analytics  };  return (    <PollView      pollSource={pollSource}      openPollFlow={flow}      theme={Theme.light}      didReceiveAnalyticsEvent={didReceiveAnalyticsEvent}    />  );};