A computer program product comprising a non-transitory computer readable storage medium having instructions encoded thereon that, when executed by a processor, cause the processor to:
- receive a request from a third party system to generate content for presentation to a target user of an online system external to the third party system;
- responsive to receiving, via a tracking mechanism included by the third party system in content, information describing an interaction performed by an additional user of the online system with the content, retrieve user identifying information stored on a client device of the additional user, wherein the user identifying information is not provided to the third party system;
- determine a measure of similarity between the target user of the online system and the additional user of the online system based on activity of the target user and the additional user within the online system;
- and
- provide the content with which additional user interacted to the target user of the online system responsive to the measure of similarity exceeding a threshold.