diff --git a/src/track.ts b/src/track.ts index 2956e6b..043ba00 100644 --- a/src/track.ts +++ b/src/track.ts @@ -4,6 +4,7 @@ const USER_DATA: Record = { email: { hashed: true }, phone_number: { hashed: true }, external_id: { hashed: true }, + ttp: { hashed: false } } const getTtclid = (event: MCEvent) => { @@ -79,6 +80,11 @@ export const getRequestBody = async ( delete payload[key] } } + + const ttpFromCookie = event.client.get('_ttp') + if (!body.context.user.ttp && ttpFromCookie) { + body.context.user.ttp = ttpFromCookie + } if (ttclid) { body.context.ad = {