You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<scriptsrc="https://unpkg.com/analytics/dist/analytics.min.js"></script><scriptsrc="https://unpkg.com/@analytics/google-analytics/dist/@analytics/google-analytics.min.js"></script><scripttype="text/javascript">/* Initialize analytics */varAnalytics=_analytics.init({app: 'analytics-html-demo',debug: true,plugins: [// attach google analytics pluginanalyticsGa({measurementIds: ['G-abc123']})// ... add any other third party analytics plugins]})/* Fire page view */Analytics.page()/* Attaching a listener */Analytics.on('*',({ payload })=>{console.log(`Event ${payload.type}`,payload)})</script>
I tried using the HTML demo here https://analytics-html-example.netlify.app/ but get errors in the console
(index):57 Uncaught TypeError: Cannot read properties of undefined (reading 'page')
at pageView ((index):57:18)
at HTMLButtonElement.onclick ((index):40:34)
I am also getting similar errors on my test site running the html version.
https://verceltest-iota-jet.vercel.app/index-DW.html
The text was updated successfully, but these errors were encountered: