Skip to content

Get Identifier

htag assigns a unique identifier to each visitor. This identifier is used to track visitor interactions and preferences across different platforms and devices and is passed to bidders where possible.

If allowed by CMP, the identifier is stored in a localStorage with adnzVisitorId key.

It is possible to get the identifier in Google PPID format from htag using the following api:

window.htag
.api('1')
.getIdentifier()
.then((identifier) => {
console.log(identifier);
});