Credit card companies know where you are spending your money, but not what you are buying.
They have been selling your data but it’s less valuable in the world of store apps and online stores where every search and purchase is linked to your email. Still worth opting out of any “data sharing” options your Credit Card company has though.
I was just about to suggest GrayJay but then I remembered it’s an Android app.