Skip to content
har.fyi 🧪

Privacy custom metric

Appears in: custom_metrics struct
As: privacy

Schema

Field nameTypeDescription
privacy_wording_linksarrayLinks related to privacy policy.
privacy_wording_links[i].textstringTitle of the link.
iab_tcf_v1objectIAB TCF v1 settings.
iab_tcf_v1.presentbooleanPresence of IAB TCF v1.
iab_tcf_v1.dataobjectTCF v1 vendor consents. VendorConsents
iab_tcf_v1.compliant_setupbooleanVerifies compliance of TCF v1 vendor consents.
iab_tcf_v2objectIAB TCF v2 settings.
iab_tcf_v2.presentbooleanPresence of IAB TCF v2.
iab_tcf_v2.dataobjectTCF v2 vendor consents. TCData
iab_tcf_v2.compliant_setupbooleanVerifies compliance of TCF v2 vendor consents.
iab_uspobjectShows the presence of IAB U.S. Privacy String.
iab_usp.presentbooleanShows the presence of IAB U.S. Privacy String.
iab_usp.privacy_stringstringIAB U.S. Privacy String.
navigator_doNotTrackbooleanIndicates whether the browser’s “Do Not Track” setting is enabled.
navigator_globalPrivacyControlbooleanIndicates whether the browser’s Global Privacy Control setting is enabled.
document_permissionsPolicybooleanIndicates the presence of the Permissions Policy.
document_featurePolicybooleanIndicates the presence of the Feature Policy.
referrerPolicyobjectSpecifies the referrer policy for the entire document and individual requests.
referrerPolicy.entire_document_policystringReferrer policy for the entire document.
referrerPolicy.individual_requestsstringReferrer policy for individual requests.
referrerPolicy.link_relationsstringReferrer policy for link relations.
media_devicesobjectTracks the usage of media device APIs like enumerateDevices and getUserMedia.
media_devices["API_NAME"]booleanIndicates usage of a particular API.
geolocationobjectTracks the usage of geolocation APIs like getCurrentPosition and watchPosition.
geolocation["API_NAME"]booleanIndicates usage of a particular API.
fingerprintingobjectTracks potential fingerprinting attempts by counting API calls and listing likely fingerprinting scripts.
fingerprinting.countsobjectCounts of fingerprinting-related API calls.
fingerprinting.counts["API_NAME"]integerCounts of fingerprinting-related API calls.
fingerprinting.likelyFingerprintingScriptsarrayList of likely fingerprinting script URLs.
request_hostnames_with_cnameobjectLists hostnames with their corresponding CNAME records.
request_hostnames_with_cname.["HOSTNAME"]arrayCNAME records for a given hostname.
ccpa_linkobjectCalifornia Consumer Privacy Act (CCPA) compliance.
ccpa_link.hasCCPALinkbooleanPresence of a CCPA link.
ccpa_link.CCPALinkPhrasesarrayRelated CCPA link phrases.

Here’s an example of the decoded object from https://www.google.com/ page crawl:

{
    "privacy_wording_links": [
        {
            "text": "Privacy"
        }
    ],
    "iab_tcf_v1": {
        "present": false,
        "data": null,
        "compliant_setup": null
    },
    "iab_tcf_v2": {
        "present": false,
        "data": null,
        "compliant_setup": null
    },
    "iab_usp": {
        "present": false,
        "privacy_string": null
    },
    "navigator_doNotTrack": false,
    "navigator_globalPrivacyControl": false,
    "document_permissionsPolicy": false,
    "document_featurePolicy": false,
    "referrerPolicy": {
        "entire_document_policy": "origin",
        "individual_requests": null,
        "link_relations": null
    },
    "media_devices": {
        "navigator_mediaDevices_enumerateDevices": false,
        "navigator_mediaDevices_getUserMedia": true,
        "navigator_mediaDevices_getDisplayMedia": false
    },
    "geolocation": {
        "navigator_geolocation_getCurrentPosition": false,
        "navigator_geolocation_watchPosition": false
    },
    "fingerprinting": {
        "counts": {
            "prefers-contrast": 4,
            "forced-colors": 15,
            "devicememory": 1,
            "hardwareconcurrency": 2,
            "localstorage": 5,
            "screen.width": 7,
            "screen.height": 5,
            "sessionstorage": 1,
            "gettimezoneoffset": 5,
            "maxtouchpoints": 5,
            "ontouchstart": 5,
            "navigator.vendor": 1,
            "getchanneldata": 4,
            "navigator.platform": 1
        },
        "likelyFingerprintingScripts": [
            "https://www.google.com/",
            "https://www.gstatic.com/og/_/js/k=og.qtm.en_US.ftxzKLuybBw.2019.O/rt=j/m=qabr,q_d,qcwid,qapid,qald,q_dg/exm=qaaw,qadd,qaid,qein,qhaw,qhba,qhbr,qhch,qhga,qhid,qhin/d=1/ed=1/rs=AA2YrTsOEv0aSAP39vut5xzjLXfdU4aRbQ",
            ...
        ]
    },
    "request_hostnames_with_cname": {
        "ogs.google.com": [
            "www3.l.google.com"
        ],
        "apis.google.com": [
            "plus.l.google.com"
        ]
    },
    "ccpa_link": {
        "hasCCPALink": false,
        "CCPALinkPhrases": []
    }
}