Facebook will track you in-store by following additional signals on mobile phones. These include things like detecting when the phone connects to a store's WiFi network, measuring how much time has elapsed since the last reset of the scrolling activity indicator, and analyzing proximity to other signal sources. With these techniques, an algorithms can detect both your visit and whether or not you buy anything.