retrieve clicks by grouped or userid