Can we come up with a more elegant solution for this? Doing this, combined with what's already in the HTML, makes it hard to track. Isn't there a way in which the same approach can be used for both anonymous and logged in?