How to detect where the player places a certain block?

I want to detect where the player places a certain block, like stone. Currently, I use the advancement system with condition minecraft:block_state_property, but I can't get the position of the placed block in the reward functions by using ~ ~ ~. Is there any method I can get the position?
Continue to help post