Go to content

Cookies and cookie consent on your Johku storefront

The Johku storefront itself uses only the cookies that are necessary for the shop to work, and these need no consent from the customer. You need cookie consent management only when you connect third-party services to the shop, such as Google Analytics, Tag Manager, Google Maps or embedded videos.

Johku's necessary cookies

On the storefront, Johku sets the following necessary cookies and browser storage data:

  • _immortal|basket-[shop ID] and _immortal|active-[shop ID] keep the contents of the customer's shopping basket. The basket data is stored in a cookie and in the browser's local storage and IndexedDB database. The cookie is valid for a year, and the validity starts over every time the customer returns to the shop. The data in local storage and IndexedDB has no expiry time. The active data is removed when the order is complete or the shopping basket is emptied.

  • _immortal|orderstate-[shop ID] and _immortal|orderstate_expiration-[shop ID] keep the details of the order form when the customer is directed to strong authentication during an order, so that the form can be restored after the customer returns. The data is valid for about 17 minutes and is removed on return or when it expires. If the customer doesn't return to the shop, the data stored in the cookie can be kept for up to a year. It is stored in a cookie and in the browser's local storage and IndexedDB database.

  • PHPSESSID is a session identifier that keeps the customer's session together between page loads. The cookie is removed when the browser is closed.

  • johku-pwa-installable:[shop ID] stores the information that the browser has reported that the storefront site can be installed as an app. With this information, the customer can be given a hint that installing the site as an app is possible. The data contains no personal data. It is stored in the browser's local storage and has no expiry time: it is kept until the site's data is cleared from the browser.

  • johku_otp_flow keeps a sign-in code request that is in progress so that it isn't lost when the page is reloaded. It is stored in the browser's session storage and is removed after 10 minutes or when the tab is closed.

  • The __Secure-better-auth.session_token cookie is used to manage the session of a signed-in customer. The cookie is valid for 7 days, and the validity is extended at most once a day when the customer uses the service, which in practice means 7 days from the last use.

  • The __Secure-better-auth.two_factor cookie is used during two-factor authentication to complete the sign-in. The cookie expires in 10 minutes.

  • The __Secure-better-auth.trust_device cookie is set only if the customer chooses to have the device remembered in two-factor authentication. It skips the authentication code prompt on this device for 30 days, after which the cookie expires.

The necessary cookies are described behind the Cookies link in the storefront's footer with a standard text that you don't need to edit and can't edit. In addition, payment providers can set their own cookies, which are necessary for paying, at the payment stage.

Johku's preference cookies

The following Johku cookies are set if the customer has given permission for preference cookies:

  • johku-pwa-reminder-dismissed-[shop ID] stores the information that the customer has closed the hint message about the possibility of installing the site as an app. The cookie is valid for a year.

When cookie consent management is needed

Enable cookie consent management if you connect any of the following to the storefront: Google Analytics, Google Tag Manager, Google Maps maps, YouTube videos, or iframe embeds and scripts placed in your content. These services set their own cookies in the customer's browser, and consent is needed for using them.

If you don't use any third-party services, the storefront works with the necessary cookies alone and no separate consent tool is needed.

Cookie consent services supported by Johku

Cookie consent management is connected in the Johku admin under Settings → Storefront → Cookie management. There are three options to choose from:

When the service is connected, the consent banner appears on the storefront automatically, and you don't need to install separate scripts on the site.

Cookie consent management services are paid services. Cookiebot's price is based on the number of subpages of the site, and on the Johku storefront the same product can appear at several addresses when it is linked to different pages. Consent Studio's price is not based on the number of addresses, so it suits especially shops that have many products and links.

The merchant's responsibility

Cookie consent management services are independent third-party services, and the merchant is responsible for their use and settings. Check in the service's settings that all the cookies your shop uses are classified and described, and keep the classification up to date if you start using new third-party services.