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
But after logging an event ex. amplitude.getInstance().logEvent('testevent', { type: 'local' }); then if amplitude.setOptOut(true/false) called there is no error!
Hi @Stephen-Neel, could you share a website url where we can reproduce this error? Thanks
Hi @Mercy811 Thank you for your response. We found out that we have custom sdk script which will initialize the amplitude (1st time if not initialized before) when we are calling the custom tracking function. This error happening while we are calling the optout without initializing amplitude.
Expected Behavior
No error
Current Behavior
[Amplitude] TypeError: Cannot read properties of undefined (reading 'save') in browser console in below line.
Important
But after logging an event ex.
amplitude.getInstance().logEvent('testevent', { type: 'local' });
then ifamplitude.setOptOut(true/false)
called there is no error!Steps to Reproduce
Environment
The text was updated successfully, but these errors were encountered: