The InfoIdent
service call creates a visitor profile if none exists already and sets an HTTPOnly first party cookie.
It returns specified TargetData profile information as JSON or JavaScript variable, which is also stored in fcData
local storage key and available via API methods.
Depending on the API pipeline setup, the response includes the umid
, identifiers
, attributes
, permissions
, notifications
and other specified and pipeline enabled data. Please contact your account mananager to discuss requirements.
The InfoIdent
service call is usually fired once per page load, but can also be restricted to once per session or within defined period of time.
The following sample call retrieves identifiers
and attributes
including optional real-time processed user-agent and IP address information.
curl 'https://funnelconnect.brand-demo.com/op/brand-demo-info/info?out=json&identifiers&attributes' \
-H 'Accept: application/json, text/plain, */*' \
-H 'Content-Type: application/json' \
-H 'Cookie: umdid=NmVhNTIxMmItZDk1Ny00M2VhLTkxNGUtZDU5ZGNkNzE0ZDcxfDVkN2ViZjUwLTEwMzAtNGVjZi1hZjhjLTFhMjAwZWQxNjJiY3ww'
Response sample - JSON, specified via out=json query string parameter:
{
"umid": "86def240-beff-420d-ae87-ea76b8a84e1b",
"state": 1,
"identifiers": [
{
"name": "mtid",
"value": "mt1-VYrAqAy9OgDbZnQ2R3M4YA"
},
{
"name": "email-aes",
"value": "JRCHSIm4J_uDd8RXxrBI4A=="
}
],
"attributes": {
"deviceName": "OT",
"city": "Warrington",
"Tech1_2": "tech1",
"PopUp_email-2_popup_config": "brand-demo-template-2",
"region": "England",
"mobileBrand": "BT",
"cc": "GB",
"nba3": "nba3",
"block-6": "sport",
"banner_business": "business",
"banner_fashion": "fashion",
"banner_fitness": "fitness",
"CustomerValueHigh": "high",
"latitude": "52.18446",
"banner_food_drink": "food-drink",
"isp": "British Telecommunications PLC",
"mnc": "00/76",
"block-5": "science",
"browserVersion": "7.81.0",
"domainName": "bt.com",
"testProfile": "true",
"browserType": "LI",
"longitude": "-0.68759",
"nba1": "nba1",
"osFamily": "",
"browserFamily": "cURL",
"PopUp_email-2_priority": "2",
"PopUp_email-2": "no_meaning_2",
"block-4": "technology",
"mcc": "234",
"usageType": "ISP/MOB"
}
}
Response sample - JS varianble, specified via out=js query string parameter:
var fcData = {"umid":"86def240-beff-420d-ae87-ea76b8a84e1b","state":1,"identifiers":[{"name":"mtid","value":"mt1-VYrAqAy9OgDbZnQ2R3M4YA"},{"name":"email-aes","value":"JRCHSIm4J_uDd8RXxrBI4A=="}],"attributes":{"deviceName":"OT","city":"Warrington","Tech1_2":"tech1","PopUp_email-2_popup_config":"brand-demo-template-2","region":"England","mobileBrand":"BT","cc":"GB","nba3":"nba3","block-6":"sport","banner_business":"business","banner_fashion":"fashion","banner_fitness":"fitness","CustomerValueHigh":"high","latitude":"52.18446","banner_food_drink":"food-drink","isp":"British Telecommunications PLC","mnc":"00/76","block-5":"science","browserVersion":"7.81.0","domainName":"bt.com","testProfile":"true","browserType":"LI","longitude":"-0.68759","nba1":"nba1","osFamily":"","browserFamily":"cURL","PopUp_email-2_priority":"2","PopUp_email-2":"no_meaning_2","block-4":"technology","mcc":"234","usageType":"ISP/MOB"}};
The state
= 1 indicates a customer profile with at least one customer identifier. state
= 0 would be a visitor profile without customer idenyfiers.