You can find the settings in section Online Store > Settings > Analytics > Privacy.
Enable analytics switch allows your store to collect visitor data. It’s recommended to keep this on by default.
Cookie policy menu lets you choose whether your store asks customers about cookies.
For consumer stores, it’s recommended to select Always ask.
For B2B or closed stores, you may choose a different option.
Session duration allows you to set the length of sessions, such as how long products stay in a customer’s cart. A longer session duration helps prevent items from being removed from the cart during the ordering process.