not sure if you've changed things for security but your first if statement has "hasvalue" instead of "hashvalue" also it looks like you're putting the code in the custom criteria field which is wrong you need to put it in the Analytics custom page code section (below the evar,props,events section) F...