abundant-orange-56988
06/14/2023, 5:37 AMrudderstack.track() in the production environment. Is this function asynchronous?kind-carpenter-27609
06/14/2023, 9:18 AMhigh-zoo-17436
06/14/2023, 9:22 AMabundant-orange-56988
06/14/2023, 11:33 AMhigh-zoo-17436
06/14/2023, 11:43 AMrudderanalytics.track(event, [properties], [apiOptions], [callback]);
More infoabundant-orange-56988
06/14/2023, 11:51 AMrudderstack.track() is synchronous or not. We are doubting that the redirection logic is getting executed before the tracking function completes its execution. If the function is async, we can simply use await to solve this issue. Please provide some insight over this.
Attaching below the code for reference.
rudderanalytics.track("purchase", {
"gb_id": id,
"currency": "INR",
"value": parseInt(planAmount),
});high-zoo-17436
06/14/2023, 1:36 PMrudderanalytics.track() is not a async function.
Can you explain your use case?
like you are firing a track call then redirecting the user to a different page? Am I correct?full-solstice-13634
06/15/2023, 5:28 AMhigh-zoo-17436
06/15/2023, 5:30 AM