React Analytics
If you haven't already, please start with the Analytics Overview below.
📄️ Analytics Overview
React Analytics Callback
- TypeScript
- JavaScript
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} /> );};
// pollSource = Poll URL or Poll ID// openPollFlow // creating poll, or opening existing poll?const PollScreen = ({ pollSource, flow }) => { const didReceiveAnalyticsEvent = (event) => { // send events to Google Analytics }; return ( <PollView pollSource={pollSource} openPollFlow={flow} theme={Theme.light} didReceiveAnalyticsEvent={didReceiveAnalyticsEvent} /> );};