IP would be a very poor way to track whether or not a website is part of the same network, since on majority of the shared hosting accounts, a single ip hosts hundreds of websites. Google is a registrar and has access to underlying registry data of domains, they might be using it to track networks.