Add userid to analytics code