Shared Devices
A family tablet, a shop’s kiosk, a browser two colleagues take turns on: some devices are used by more than one person who signs in. Realtime identity keeps those people apart, and your graph’s shared identifier attribution decides who the device’s anonymous activity belongs to. Realtime and your warehouse apply the same setting, so they agree for a device known by one identifier, such as a browser’s anonymous ID.
A warehouse record that carries several device identifiers at once (an anonymous ID and an advertising ID on the same row, say) is read differently: when two of them are each shared by several people, your warehouse attributes that record’s activity to no one, while realtime identity attributes each identifier on its own. The two can then disagree about such a device.
What happens
Pat signs in on a browser, and later Sam signs in on the same browser. A person holds one user ID, so Pat and Sam stay two profiles: the browser can belong to only one of them.
| Shared identifier attribution | The browser, and its anonymous activity |
|---|---|
| the person seen with it first (default) | Stays with Pat. Sam’s sign-in on this browser is recorded and links nothing. |
| the person seen with it last | Moves to Sam, for Sam’s events from then on. Pat’s earlier activity stays with Pat. |
| no one | Stays where it is. Sam’s sign-in links nothing. |
Either way, the sign-in that was set aside is recorded with its reason, so the profile can tell you why the browser is not Sam’s. See Why Are These Merged?.
Looking up a shared identifier that belongs to no one, with no one chosen or for a device your warehouse marked as shared, answers unknown, the same answer as an identifier never seen. The identity API never says that an identifier is shared, so a lookup cannot reveal that several people use it.
Choosing the setting
Set Shared identifier attribution on the graph’s Configuration tab (see Limit Rules). The default suits most sites. Choose the person seen with it last when devices change hands, for example company laptops passed to new staff, and no one when a device must never carry activity between people, for example a kiosk.
Devices per person
A person can use many devices. The Event identity graph keeps up to ten per person; when an eleventh arrives, the least recently seen device makes way for it, and its own history stays with it as a separate anonymous profile.
Realtime audiences count a shared device’s anonymous activity for exactly one person, the one the attribution chooses, so the same visit is never counted twice.
A device on a public machine
When a visitor signs out, reset() in the SDK gives the browser a new anonymous ID, so the next person to use it starts afresh. Call it on sign-out on shared machines.