Use of analytics for proximity marketing