1. A method operating on one or more network devices, the method comprising: receiving a plurality of cookies, wherein each cookie is associated with one or more Interne Protocol (IP) addresses; partitioning the plurality of cookies into one or more connected components based on the one or more IP addresses, each of the one or more connected components including one or more cookies from the plurality of cookies; and for each of the one or more connected components, generating one or more clusters of cookies based on a similarity between cookies, wherein each of the one or more clusters is associated with a unique mobile device.