changed logic to post data only if user stays for more than 5 seconds at a beacon