TapCub is live — analytics, insights and live chat, free on one platform
Glossary

Device ID: types, how analytics uses it and privacy rules

A device ID identifies one phone, tablet or computer over time. The main types (IDFA, IDFV, Android advertising ID, app install IDs), how analytics uses them to count and link users, and the privacy rules to follow.

Chen Yu Reviewed by Ethan Brooks Also called device identifier Last updated Nov 5, 2026 Glossary

Quick answer

A device ID is an identifier used to recognize a specific device over time. It can be an operating-system advertising ID (IDFA, Android advertising ID), a vendor- or app-scoped ID, or a random ID generated by an app or SDK at install.

What is a device ID?

A device ID is an identifier that distinguishes one phone, tablet, computer or other device from others. In apps and analytics, it lets a service recognize that events came from the same device over time: the same install opening the app on Monday and again on Friday.

"Device ID" covers several different identifiers with very different scopes and privacy rules. Some are set by the operating system for advertising, some are scoped to one app vendor, and many analytics SDKs simply generate a random ID when the app is first opened.

Types of device identifiers

IdentifierPlatformScopeResets whenConsent and policy
IDFA (Identifier for Advertisers)iOSShared across apps, for advertisingUser resets it in settingsNeeds App Tracking Transparency permission since iOS 14.5; zeros otherwise
IDFV (Identifier for Vendor)iOSAll apps from one developer on a deviceAll of that vendor's apps are removedNo ATT prompt; not for cross-company tracking
Advertising ID (GAID / AAID)AndroidShared across apps, for advertisingUser resets or deletes itGoogle Play policy limits use; returns zeros after the user deletes it
Android ID (SSAID)AndroidPer app signing key, user and device (Android 8+)Factory reset or signing key changeNot for advertising
App-generated install IDAnyOne install of one appReinstall or clearing app dataDepends on what you store with it
Hardware IDs (IMEI, MAC, serial)AnyPermanentNeverRestricted by modern OS versions; avoid

On the web there is no operating-system device ID. Websites use cookies, local storage or server-side visitor IDs, and fingerprinting combinations of browser attributes; see first-party cookie and browser fingerprinting.

How analytics uses device IDs

  1. Counting devices. Daily and monthly active devices are distinct device IDs with activity.
  2. Stitching sessions. Events from the same device across launches belong to one history.
  3. Linking to users. When someone logs in, the device ID is bound to the user ID, so earlier anonymous activity can be attributed to that person; see identity resolution.
  4. Deduplicating. One person with a phone and a laptop is two devices but one user.

Example from a sample week:

CountValueWhy it differs
Visitors (web, anonymous)18,400Browsers without login, no cross-device link
Devices (app, install IDs)6,200Each install counted once
Users (logged in)4,9001,300 devices belong to people with more than one device

Device IDs and privacy

Under the GDPR and similar laws, a device ID is generally treated as an online identifier and therefore personal data when it can be linked to a person. That means you need a lawful basis (often consent) before reading or storing it for analytics or advertising, should tell users about it, and must honor deletion requests. Practical rules:

  • Prefer app-scoped, randomly generated IDs over advertising or hardware IDs for analytics.
  • Do not read advertising IDs unless you actually need them for advertising and have permission.
  • Delay writing any persistent ID until consent where required.
  • Hash or avoid storing other identifiers alongside it; see hashing and pseudonymization.

Common problems

  • Reinstalls inflate device counts. An app-generated ID changes on reinstall, so one person can appear as several devices.
  • Shared devices (family tablets, store kiosks) merge several people into one ID.
  • Emulators and test devices pollute counts unless filtered.
  • Zeroed advertising IDs (all zeros) when users opt out are not unique and must not be used as identifiers.

In TapCub

TapCub counts in three layers: visitor, device and user. The website script does not write a device ID; anonymous web visitors are counted with a visitor ID derived on the server. App and mini-program SDKs write a persistent device ID only when the project is in identified mode, at collection tier 3, and with analytics consent; in anonymous mode they still send events but do not store a device ID and ignore identity calls. The identity map compares visitor, device and user counts for a date range so you can see how many extra devices identity removed. See identified vs anonymous and cross-device merge.

Sources

Was this explanation clear?

We use your answers to fix and expand this page.

Chen Yu

Technical Engineer

Focuses on tracking code, SDKs, and API integrations, with practical guidance on implementation checks and troubleshooting.

FAQ

Questions people ask

Short answers to the follow-up questions that come up most.

Still have a question?

Chat with the team behind TapCub — we usually reply within a few hours on business days.

What is a device ID used for?

Recognizing the same device over time: counting active devices, linking events across sessions, binding a device to a logged-in user, and for advertising IDs, ad measurement.

Is a device ID personal data?

Under the GDPR and similar laws it is generally treated as personal data when it can be linked to a person, so collection usually needs a lawful basis such as consent.

What is the difference between IDFA and IDFV?

IDFA is shared across apps for advertising and needs App Tracking Transparency permission; IDFV is shared only among one developer’s apps and needs no prompt.

Does a website have a device ID?

No operating-system device ID is available to websites. They rely on cookies, local storage, server-side visitor IDs or fingerprinting.

See this number on your own site

Add one script tag for web and apps, and the first reports fill in within minutes.

See your data clearly. Find your growth.

Every click, backed by data. Install one line of code and see your first numbers in a minute.

No credit card · Free plans for analytics and chat · Cookieless analytics