When attempting to use any analytics method, such as analytics.page(), the following error is returned:
VM184:1 Uncaught ReferenceError: analytics is not defined
at <anonymous>:1:1
I've read through the readme several times, and this fairly important detail does not appear to be covered. The .page() method is referenced twice, once in the nextjs example and another isolated example for anonymous user IDs (which would predictably also throw this error)
I have inspected the DOM and document variables, and cannot locate an instantiated analytics anywhere, before or after GDPR configuration.
Please consistently demonstrate how to implement segment spec for reactjs and standalone as you did for nextjs
When attempting to use any
analytics
method, such asanalytics.page()
, the following error is returned:I've read through the readme several times, and this fairly important detail does not appear to be covered. The
.page()
method is referenced twice, once in thenextjs
example and another isolated example for anonymous user IDs (which would predictably also throw this error)I have inspected the DOM and document variables, and cannot locate an instantiated
analytics
anywhere, before or after GDPR configuration.Please consistently demonstrate how to implement segment spec for
reactjs
andstandalone
as you did fornextjs
Thank you.