Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Universal IDs in Digital Advertising Explained

· 6 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Universal IDs in digital advertising are a replacement for third-party cookies, letting advertisers recognize users across websites and apps using a persistent, pseudonymous identifier (like an email address or phone number) that the user has consented to share. They work by hashing that identifier and matching it across ad platforms, so you can target ads, measure performance, and avoid tracking users without their permission. This guide explains what they are, how they work, and how to implement them.

What You'll Need

  • An advertising account (e.g., Google Ads, Meta Ads, or a demand-side platform like The Trade Desk).
  • Access to your website's backend or a tag management system (like Google Tag Manager) to add code.
  • A way to collect user identifiers (e.g., email addresses from logins or newsletter signups) — you must have user consent to use these.
  • Basic understanding of cookies and how your current tracking works.

Step-by-Step

  1. Understand the core concept. Universal IDs (also called unified IDs or identity solutions) are based on a hashed email or phone number. When a user logs into your site or provides their email, you hash that value (using SHA-256) and send it to an identity provider (like LiveRamp, The Trade Desk's Unified ID 2.0, or ID5). The provider matches it to a universal ID that can be recognized across participating platforms.
  2. Choose an identity provider. Research which providers your ad platforms support. For example, Google Ads supports its own encrypted signals, while The Trade Desk supports Unified ID 2.0. Pick one that aligns with your main advertising channels.
  3. Set up consent management. Before collecting any identifier, ensure your privacy policy and consent banner (e.g., a CMP like OneTrust or Cookiebot) explicitly state you'll use email/phone for advertising. Users must opt in. This is legally required under GDPR and similar laws.
  4. Collect identifiers. Capture email addresses or phone numbers from user logins, account creation, or newsletter forms. Store them securely. Do not collect identifiers from users who have not consented.
  5. Hash the identifiers. Use a hashing algorithm (SHA-256) to convert the raw email/phone into a fixed-length string. This prevents sending plaintext data. Most identity providers offer code snippets or SDKs to do this automatically.
  6. Integrate the identity provider's tag. Add the provider's JavaScript tag to your website, usually via Google Tag Manager or directly in the site's HTML. The tag will read the hashed identifier and pass it to the provider's servers, which then map it to a universal ID.
  7. Sync with ad platforms. In your ad platform's settings, enable the integration with your chosen identity provider. For example, in Google Ads, you'd enable "encrypted signals" in the audience manager. In The Trade Desk, you'd link your Unified ID 2.0 account.
  8. Test the setup. Use your ad platform's preview or debugging tools (like Google Tag Assistant or the provider's own test mode) to confirm that the universal ID is being generated and passed correctly. You should see a test ID in your browser's network tab.
  9. Create audiences and measure. Once IDs are flowing, you can build remarketing lists (e.g., users who logged in but didn't purchase) and set up conversion tracking that uses the universal ID instead of cookies.
  10. Monitor and maintain. Universal IDs depend on user logins. If a user clears their browser data, the ID may persist because it's tied to their email, not a cookie. But if they change email or revoke consent, the ID breaks. Regularly check your match rates (the percentage of IDs recognized) in your provider's dashboard.

Common Mistakes

  • Hashing incorrectly. Ensure you hash the raw email in lowercase, with no spaces, and use SHA-256. If you hash an uppercase version, the ID won't match across platforms.
  • Ignoring consent. Collecting email hashes without explicit consent is illegal in many regions and can lead to fines. Always use a consent management platform.
  • Using a universal ID for every user. If a user hasn't logged in, you can't get their email. That's fine — universal IDs work best for authenticated users. Don't force login just to track.
  • Assuming it works everywhere. Universal IDs are not supported by all publishers or platforms. Some sites won't accept them, so your reach may be lower than with cookies.
  • Forgetting to update tags. If you change identity providers, you must remove old tags and add new ones. Leaving both can cause duplicate IDs.

Tips

  • Start with one provider. Don't try to integrate multiple identity solutions at once. Pick one that your main ad platform supports, get it working, then expand.
  • Use a tag manager. Google Tag Manager makes it easy to add, update, and test the identity provider's tag without editing site code.
  • Combine with first-party data. Universal IDs are most powerful when you also collect rich first-party data (e.g., purchase history, page views) and tie it to the ID.
  • Check match rates regularly. A low match rate (below 50%) means your IDs aren't being recognized. Troubleshoot by verifying your hashing method and that the tag fires on all relevant pages.
  • Plan for opt-outs. If a user revokes consent, you must stop using their ID. Have a process to delete or deactivate IDs in your system.

Troubleshooting

If your universal IDs aren't working, start with the simplest checks:

  1. Verify the tag is firing. Use your browser's developer tools (Network tab) to see if the identity provider's request is being sent. If not, the tag may be missing or blocked by an ad blocker.
  2. Check the hash. Use an online SHA-256 generator to hash a test email (lowercase, no spaces) and compare it to what your tag sends. If they differ, fix your hashing code.
  3. Confirm consent. If the user hasn't consented, the tag should not fire. Make sure your consent banner is actually blocking the tag until consent is given.
  4. Look at provider status. Check the identity provider's status page for outages. If their service is down, IDs won't be generated.
  5. Test in a private browser. Clear cookies and test in incognito mode to rule out interference from old cookies or cached scripts.
  6. Reinstall the tag. If all else fails, remove the tag and re-add it from the provider's documentation. Sometimes a copy-paste error breaks the code.

Frequently Asked Questions

Do universal IDs replace cookies entirely?

Not entirely. They replace third-party cookies, but first-party cookies (like those for login sessions) still exist. Universal IDs work alongside them, providing a persistent identity across sites.

Is a universal ID the same as an email address?

No. The email is hashed (encrypted into a string) and then mapped to a separate ID by the provider. The provider never sees the raw email, and the universal ID is not reversible to the email.

Do I need user consent for universal IDs?

Yes. Under GDPR and many other privacy laws, you need explicit consent to collect and use email or phone data for advertising. Your consent banner must clearly state this use.

Will universal IDs work on all devices?

They work across browsers and devices where the user is logged in or has provided their email. If a user uses a different email on mobile vs. desktop, the IDs will differ.

What happens if a user clears their browser cookies?

Universal IDs are not stored in cookies, so they persist. The ID is tied to the hashed email, not the browser. However, if the user logs out or revokes consent, the ID becomes inactive.

Are universal IDs better than cookies for privacy?

They can be, because they rely on consent and are pseudonymous. But they still track users, so they must be handled responsibly. The main benefit is that they work without third-party cookies, which are being phased out.