I don't understand why you store this in a session and then pull it out in the experiment templatetag, rather than directly enrolling the user in the experiment with the correct alternative here.