Before! I put the sprinkles in the cookie dough. You can press a few on top before baking as well!