Hi!
I'm trying to connect a plugin to get Measurement ID
import {Identify, identify, init, add, track, logEvent} from '@amplitude/analytics-browser';<br />import {AMPLITUDE_API_KEY} from "~/constants/conf";<br />import {gaEventsForwarderPlugin} from '@amplitude/plugin-ga-events-forwarder-browser';<br /><br /><br />const initAmplitude = () => {<br /> add(gaEventsForwarderPlugin());<br /> init(AMPLITUDE_API_KEY, '',<br /> {<br /> defaultTracking: {<br /> attribution: {<br /> resetSessionOnNewCampaign: true<br /> },<br /> sessions: true,<br /> pageViews: true<br /> }<br /> }<br /> );<br />};<br /><br />initAmplitude();
In this case, the following error appears - Cannot read properties of undefined (reading 'sendBeacon').
How can I fix this?