Unlike in books and tellraw, clickevents on signs can run op commands even if the player clicking the sign normally can't.

The sign clickevent can therefore run your commands directly (e.g: with a /function), or scoreboard players set a dummy score that is tested elsewhere.