"clickEvent" not working

I'm trying to make an advancement run a command when you click on it and /kill @e[type=pig] as a placeholder command but it wont work

Continue to help post