It requires handing over quite some data, but here in Germany, I can get a digital PDF receipt from my main supermarket. There’s a parser on Github [0] that I contributed to (found it when I searched before writing it myself :D), and I use it to track price changes of items I buy. The situation could be a lot better, but at least it gives me some fun graphs.
That's pretty common in the US well. Kroger stores do it, I imagine any store with a membership program is similar. Home Depot does it too, without a membership program, if you give them your email address at POS the first time you use a new card. I'm sure they love the data.
[0]: https://github.com/bietiekay/REWE-eBon-Parser