I.will travelling back to nyc from amsterdam with connection at glasgow scotland. My question is that does us immigration get completed?

At scotland airport? Or in nyc.
3 answers 3