Expand my Community achievements bar.

SOLVED

Regarding first-party device IDs (FPID's) implementation, how can AEP Web SDK (which is a client side Javascript library) get the value of the cookie FPID even if FPID is flagged with HttpOnly?

Avatar

Level 1

Hello, Hope you are all doing well!

 

I have a simple doubt:

 

Regarding first-party device IDs (FPID's) implementation, how is AEP Web SDK (being, as per the docs, a client side Javascript library) able to get the value of the cookie FPID to send to Edge network, even if the FPID is flagged with HttpOnly by the server? Wouldn't the browser block Web SDK, as a javascript library, to get FPID cookie?

 

Thank you very much!

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

@viniciuscosta1 Have you tried doing this in an env? 

the configuration of FPID happens in datastream, this data is read on the edge server once enabled. 

if you do not want to go this way, you can read the cookie server side and update datalayer on client side before it's passed into identityMap 

 

read here 

https://experienceleague.adobe.com/en/docs/experience-platform/web-sdk/identity/first-party-device-i...

 

Anil_Umachigi_0-1720060066375.png

 

 

Anil_Umachigi_2-1720060151957.png

 

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

@viniciuscosta1 Have you tried doing this in an env? 

the configuration of FPID happens in datastream, this data is read on the edge server once enabled. 

if you do not want to go this way, you can read the cookie server side and update datalayer on client side before it's passed into identityMap 

 

read here 

https://experienceleague.adobe.com/en/docs/experience-platform/web-sdk/identity/first-party-device-i...

 

Anil_Umachigi_0-1720060066375.png

 

 

Anil_Umachigi_2-1720060151957.png