A device map with TV as the master key can link all of a household's digital devices and follow users outside the home to enable cross-screen engagement and attribution. Building a robust device map requires identifying devices through various data sources, linking them probabilistically or deterministically, and continuously refining matches using machine learning to account for false positives and negatives. Putting the device map to the test during major events allows for real-time syncing of ads to second screens based on TV viewership, measurement of cross-screen impact on metrics like brand recall and sales lift.