- 🇬🇧United Kingdom JeremyFrench
The issue has manifested on a site I am working on in a different way. For whatever reason the page is being cached with the view product on, and when a subsequent user tries to get the data they will not receive a view item event.
I think we can serve in the same request and in a proof of concept I have it working. Once a user has started the checkout flow they will have a session and the issue of caching isn't so important but for the view_item at least we should allow this to work anonymously and with caching.
- First commit to issue fork.
- Merge request !6Issue #3308307: Prevent usage of tempstore to prevent starting unnecessary session → (Closed) created by josegracia
- 🇪🇸Spain josegracia
I propose to use just tempstore just in an opened session. Also the events are stored in a static property in the Event Storage Service so we can send it to the JS, then push those events to dataLayer.
In incognito we can keep using the controller to get the events but avoiding to use tempstore so we dont miss the static cache.