From ac80e7af41748013a126bdeb8e95043700f2a6c1 Mon Sep 17 00:00:00 2001 From: Marian Cepok Date: Fri, 8 Jan 2021 07:55:38 +0100 Subject: [PATCH] Don't overwrite custom user defined event id --- core/src/core.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/core.ts b/core/src/core.ts index e16bf227e..867e02195 100644 --- a/core/src/core.ts +++ b/core/src/core.ts @@ -782,8 +782,8 @@ export function trackerCore(base64: boolean, callback?: (PayloadData: PayloadDat tstamp?: Timestamp, afterTrack?: (Payload: PayloadDictionary) => void ): PayloadData => { - sb.addDict(payloadPairs); sb.add('eid', v4()); + sb.addDict(payloadPairs); const timestamp = getTimestamp(tstamp); sb.add(timestamp.type, timestamp.value.toString()); const allContexts = attachGlobalContexts(sb, context);