A "stock price" is nothing but the price at which some shares of that stock were sold on an exchange from someone willing to sell those shares at that price (or more) to someone willing to buy them at that price (or less).
Pretty much every question about how stock prices work is answered by the paragraph above, which an astonishingly large number of people don't seem to be aware of.
So there is no explicit "tracking" mechanism at all. Just people buying and selling, and if the current going price on two exchanges differ, then that is an opportunity for someone to make money by buying on one exchange and selling on the other - until the prices are close enough that the fees and overhead make that activity unprofitable. This is called "arbitrage" and a common activity of investment banks or (more recently) hedge funds and specialized trading firms spun off by said banks due to regulation.