Store an agent ID in the local storage rather than stashing it in a tag.