Data going to wrong site

I’ve added three websites, let’s say A, B, and C.
I want analytics for A to only report to A, and B only to B. At the moment, the site that I was as A is also receiving the data from B. Why is this?

It seems the tracker code is the same for all three sites. Could this be the reason?