added user id tracking to analytics