Cross-app and cross-device tracking¶
The identity a person uses on one app and the identity they use on another may feel entirely separate. They can nevertheless be linked. Three mechanisms produce those links without any single system holding the whole picture: identifiers a service is handed, accounts somebody signs into, and identifiers derived from the properties of a device or browser.
What a tracker ends up with is an identity it has constructed. How well that construction corresponds to an actual person is a separate question.
Recital 30 of the GDPR recognises how identifiers associated with devices, applications and protocols can be combined with other information to construct profiles and identify people.
Shared identifiers¶
When somebody logs into an application with an email address, the application may hash that address and report it to an analytics service alongside records of their activities.
A second application, appearing unrelated, may use the same analytics provider and compatible hashing arrangements. The same value arrives from two different sources. The connection is made within the receiving system.
# App A
identifier = sha256(normalise(email))
event_a = (identifier, "app_A", "opened_app")
# App B
identifier = sha256(normalise(email))
event_b = (identifier, "app_B", "clicked_ad")
# Shared analytics provider
profile[identifier] = merge(event_a, event_b)
This pseudocode illustrates a deterministic join. Both applications supply a compatible identifier, and the receiving system groups their observations accordingly.
The person using the applications may have no reason to associate one with the other.
Hashing changes the representation of the address. Equal inputs processed in the same way still produce equal outputs. The connection depends on that equality.
Different normalisation rules, salts or keyed hashing arrangements can prevent direct comparison between particular systems. An ordinary unsalted hash of an email address may also be susceptible to guessing from known addresses.
One login, two devices¶
Somebody signs into the same service on a phone and a laptop. The service can associate activity on both devices with the account.
activity = {
"device_phone": [
"searched for flights"
],
"device_laptop": [
"completed booking"
]
}
account_devices = [
"device_phone",
"device_laptop"
]
profile = combine_activity(
account_devices,
activity
)
Combining the records produces a sequence that neither device holds by itself.
The service may reasonably infer that the account holder researched a flight on the phone and subsequently booked it on the laptop.
A shared account introduces another possibility. One household member might have undertaken the research and another completed the booking. The account provides continuity, while the identity of the person undertaking each activity can remain uncertain.
Recognising the browser¶
Browser fingerprinting can provide another way of associating observations.
A script collects information about the browser environment, including characteristics of its display, software and configuration. A service receiving sufficiently similar observations from different websites may associate them with the same browser.
# Simplified conceptual model
observations_a = browser_properties(site_a)
observations_b = browser_properties(site_b)
if sufficiently_similar(
observations_a,
observations_b
):
associate(visits_a, visits_b)
The comparison may involve exact equality or a statistical assessment of similarity.
Different browsers can present similar characteristics. The same browser can also present different characteristics after a software update, configuration change or other alteration to its environment.
The technique creates opportunities to recognise a browser without relying on a conventional cookie or shared login. Its effectiveness depends on the observations available and the method used to compare them.
The experiment below uses explicit generated identifiers. It does not evaluate browser fingerprinting.
Constructing the graph¶
The cross-device experiment generates a population of 400 people and 1,007 devices. Ninety people own one device; 310 own between two and four.
The devices carry three kinds of generated identifier:
A device identifier, representing an advertising ID scoped to one device.
A household identifier, representing an outward facing IP address shared within a household.
A person identifier, representing a recognisable email or account identifier.
The values are abstractions. The generated person identifier, for example, represents the equality relationship an email address could provide. No actual email addresses are collected or hashed.
The simulation joins devices sharing an identifier. A connected component consists of all devices that can be reached from one another through those joins.
for device in population:
graph.add_node(device.id)
for identifier_type in available_identifiers:
for group in group_by(identifier_type):
connect_devices(graph, group)
components = connected_components(graph)
Connections are transitive. If the first device shares an identifier with the second, and the second shares another identifier with the third, all three can end up in the same component.
The tracker treats that component as a single identity.
The generator retains information that the simulated tracker cannot see: the actual owner of each device. This makes it possible to examine the accuracy of the constructed identities independently of the identifiers used to construct them.
Counting the people¶
Several different measurements are needed to establish how well the tracker has performed.
Linking at least two devices belonging to the same person is one possible success. Correctly reconstructing that person’s identity is more demanding. All their devices need to appear together, and the resulting component needs to contain no devices belonging to other people.
The two principal errors are false merges and false splits.
A false merge occurs when devices belonging to different people appear together. A false split occurs when devices belonging to the same person remain separated.
The distinction can be illustrated with three devices:
Actual ownership:
Person A: phone, laptop
Person B: tablet
Constructed identities:
Component 1: phone, tablet
Component 2: laptop
The phone and tablet form a false merge. The phone and laptop form a false split.
The same collection of records can therefore contain both kinds of error simultaneously.
An earlier version of this experiment counted people whose devices appeared together without adequately distinguishing complete identities from identities containing somebody else’s devices. It also included people owning a single device among those whose devices had been successfully brought together.
The revised measurements separate these outcomes.
Identifiers available |
Linked multi-device owners |
Correctly reconstructed people |
Components mixing people |
|---|---|---|---|
Advertising ID |
0/310 |
90/400 |
0 |
Advertising ID and household IP |
191/310 |
40/400 |
120 |
Advertising ID and person identifier |
66/310 |
156/400 |
0 |
All three |
236/310 |
42/400 |
120 |
The advertising ID alone reconstructs ninety people correctly. All ninety own a single device. No actual connection between devices has been made.
Adding the person identifier connects devices belonging to another sixty six people under the default assumptions. The resulting components remain free of false merges in this run.
The household identifier behaves differently. It connects considerably more devices, while also combining the activities of different people. The number of correctly reconstructed identities falls below the result obtained using the advertising ID alone.
With all three identifiers available, the tracker connects devices belonging to most people who own several. Nevertheless, only 42 of the 400 people are represented by complete and uncontaminated components.
The pairs that went wrong¶
Counting components reveals how many constructed identities contain mistakes. Counting device pairs reveals something about the extent of those mistakes.
Identifiers available |
False merge pairs |
False split pairs |
|---|---|---|
Advertising ID |
0 |
994 |
Advertising ID and household IP |
2,024 |
285 |
Advertising ID and person identifier |
0 |
665 |
All three |
2,297 |
162 |
The household identifier introduces thousands of incorrect associations between devices.
Adding the person identifier reduces the number of missed connections between devices belonging to the same person. It also allows further incorrect connections to propagate through existing household components.
With all three identifiers, the tracker recovers approximately 84% of the device pairs that genuinely belong together. Only about 27% of the pairs it constructs actually belong to the same person.
These are two different measures, known as recall and precision.
A commercial system interested primarily in accumulating observations may find the increased recall attractive. A system whose conclusions have consequences for particular individuals has considerably more reason to examine the accompanying errors.
What the tracker holds is a collection of things it believes are people, and the belief fails in both directions at once.
Changing the assumptions¶
The preceding figures describe one generated population under a particular configuration. The ownership of devices, availability of identifiers and organisation of households have been selected for the experiment.
They are adjustable.
For example, increasing the availability of the person identifier produces the following results when that identifier is combined with the advertising ID.
Person identifier coverage |
Linked multi-device owners |
Correctly reconstructed people |
|---|---|---|
25% |
10/310 |
100/400 |
55% |
66/310 |
156/400 |
85% |
187/310 |
277/400 |
Greater availability of the generated person identifier improves reconstruction in this scenario because the identifier has been assigned an idealised relationship with its owner.
Other changes produce different outcomes.
Introducing a 20% account sharing rate produces 3,884 false merge pairs when all three identifiers are used. Reducing the number of households to eighty produces 4,773. Distributing the same population across three hundred households reduces that figure to 601.
The household arrangement has a particularly strong influence on the results because it determines how many different people can share the same identifier.
Real networks are considerably more complicated. A household may have several outward facing addresses over time. One address can represent a workplace, university, café or a much larger group of internet subscribers. Account identifiers can be shared, changed or absent, and a device can pass from one owner to another.
The experiment uses uniform device ownership draws between one and four devices, idealised identifier scopes and uncalibrated coverage and sharing parameters. Identifier changes are modelled only for the person identifier.
The values in the tables cannot establish actual error rates for commercial tracking systems. They illustrate how the errors arise and how changing the assumptions can change the balance between them.
Hashed for protection?¶
The graph depends on whether two identifier values are equal.
same_before = identifier_a == identifier_b
same_after = (
sha256(identifier_a)
== sha256(identifier_b)
)
For the same deterministic transformation applied consistently, equal input values remain equal.
An ordinary hash can conceal the original representation of an identifier while preserving the property necessary to connect records. It can therefore leave the graph effectively unchanged, apart from the theoretical possibility of hash collisions.
The protection offered by pseudonymisation depends partly on who can obtain compatible identifiers and what additional information is available to them.
Sold as one person¶
A commercial profile can contain observations from several devices, some belonging to the person it purports to describe and some belonging to somebody else.
The business receiving the profile may have no independent record of actual device ownership. Its ability to recognise errors therefore differs from that of the experiment, where the generated population provides a complete answer against which every connection can be checked.
Some errors may remain commercially tolerable. An advertisement for a product somebody has no interest in may still produce an occasional purchase.
The consequences change when the constructed profile concerns a medical condition, a financial difficulty or a confidential relationship. Incorrect connections can reveal information about another person, attribute circumstances to somebody who has never experienced them or influence subsequent assessments.
The mistaken identity cases illustrate some documented consequences of incorrect connections in credit reporting. They concern different systems from the simulated advertising tracker, but demonstrate why establishing the accuracy of a commercial identity becomes important when information is used for consequential decisions.
The network has a say¶
Keeping activities separate can reduce the opportunities available to particular tracking mechanisms. Separate browser environments can make some forms of correlation more difficult. Independent accounts can remove a direct connection otherwise supplied by a common login.
Blocking fingerprinting scripts can prevent some collection, although coverage depends on the scripts and techniques involved.
The network presents a different problem. Several people can share an outward facing IP address without sharing accounts or devices. Their connection becomes observable regardless of the decisions they have made individually about their logins.
A VPN can change the outward facing address visible to a website, potentially replacing a household association with an address shared by unrelated subscribers. It leaves other identifiers available to services that can obtain them.
The experiment helps distinguish two objectives that may otherwise become confused: reducing the opportunities to associate activities with one another, and ensuring that associations made by commercial systems are accurate. Individual privacy measures can help with the former. The latter also requires appropriate matching methods, evidence of their accuracy, restrictions on the purposes for which the resulting profiles are used, and effective means of discovering and correcting mistakes.