Stape Plugin - exclude data layer from cache

Hi,

I haven’t found any solution online so I wanted to see if someone has built a custom solution. I am looking to exclude the data layer from cache so are not sending the wrong ecommerce/user data to various tags. Our site is on a lightspeed server using native LS cache.

Hopefully there is a simple solution

thanks

Can you please elaborate more on how exactly caching affects the data layer?
It would be great if you could show examples where this doesn’t work correctly due to caching.