Make user_agent accessible

Adding a tracker method to retrieve the user agent.
Line is too long. [95/80]<br>Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.