From e85034acd255b1aa661e60ac56f27d0f6ab8ed42 Mon Sep 17 00:00:00 2001 From: Nikolay Frantsev Date: Fri, 12 Nov 2021 11:31:11 +0200 Subject: [PATCH] Update rnd and appid params --- react-native-userreport-sdk.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/react-native-userreport-sdk.js b/react-native-userreport-sdk.js index 3eaee44..f802dc5 100644 --- a/react-native-userreport-sdk.js +++ b/react-native-userreport-sdk.js @@ -107,10 +107,10 @@ const fireTrackingPixel = async (trackingCode, consentString) => { const path = `https://${domain}/hit.gif`; const params = `?t=${encodeURIComponent(trackingCode)}` // eslint-disable-line prefer-template - + `&r=${random}` + + `&rnd=${random}` + (!useAnonymousTracking && idfa ? `&d=${encodeURIComponent(idfa)}` : '') + (!useAnonymousTracking && idfv ? `&idfv=${encodeURIComponent(idfv)}` : '') - + `&med=${encodeURIComponent(bundleId)}` + + `&appid=${encodeURIComponent(bundleId)}` + `&os=${encodeURIComponent(systemName)}` + `&osv=${encodeURIComponent(systemVersion)}` + `&dn=${encodeURIComponent(deviceName)}`