Hi community.
I would like to ask how to set consent mode with Browser SDK 2.0.
I need to track events without cookies.
I tried optOut setting and localStorage setting.
- optOut setting: added a line, amplitude.setOptOut(true);
- localStorage setting: added option in initialization code
amplitude.init(‘API key’, {
identityStorage : ‘localStorage’})
When I tried no1, still I could find AMP_ cookies but I couldn’t find when I tried no2.
So, here are real questions,
- Did I try appropriate ways? If not, please let me know how can I track events without cookies.
- In that case, I think no2 is the right way to achieve to my purpose. But when I searched ‘localStorage’ in console, I cannot find how can I track events. My ultimate purpose is get as same as possible to GA4 consent mode.
I am not a developer so I have lack of knowledge of implement technical things. So please let me know specifictly how to do.
Thanks a lot!