When add analytics script, wordpress user login not working

You should add the analytics code inside <script>...</script> code ginven to you by Analytics immediately before the </head> or, if you want to add it in the footer, right before the closing </body>.

If you done that, can you please share the full code you try to add? (make sure to remove the tracking number)