Hi everyone! We noticed that some events started f...
# support
f
Hi everyone! We noticed that some events started failing in iOS Rudderstack - GA4. Can someone help with the reason for the failure? How the timestamp property is set? Thank you very much!
m
Hey There! đź‘‹ Your message has been received by the RudderStack team. Our standard customer support hours are 9-6 PM EST, but we will forward this request to your Technical Account Manager, and they will get back to you shortly. Please use the thread for any additional comments.
k
Hey @few-activity-43960, Can you share the event payload for which you are seeing this ? CC <!subteam^S04QT1G74Q3|@sdk-team>
f
Screenshot 2023-07-18 at 1.26.20 PM.png
What details do you need of the event payload?
k
This should be enough for now
Seems like this particular event was generated on 14th of july but got sent to Rudderstack data plane on 18th of july, because SDK would wait to batch some events and send them to the data plane and the app might be closed in the mean time this event was batched and sent to data plane. And on the GA4 side, if the timestamp at which event is generated is more than 72 hours then it wouldn’t accept the events and that is why you are seeing this error
gratitude thank you 1
How much % of your events are getting failed due to this error ?
f
Need to check, not sure. We have some other events failing too due to users that have not updated the app.
Hey again! Do you know how we can find the % of events failing for this particular reason? Thank you!
k
Hey @few-activity-43960, You can just take a quick look at # of events delivered and failed by taking a look at the Events tab of a destination
f
Thanks for the reply. We have also events failing for other reasons (the user did not update the app), can we somehow filter failing by the error?
Can we do something regarding the long delay, to avoid events failing in GA4? Problems are in Android/iOS.
k
Hey @few-activity-43960, You can tweak the values of `flushQueueSize`(The number of events to be sent in a batch),
sleepCount
(Minimum waiting time to flush events to the Server since last request) using the
withFlushQueueSize()
,
withSleepCount()
APIs of
RudderConfigBuilder
respectively to define how frequently SDK flushes events to the Server. SDK would flush the events to the server when either of the below conditions become true: 1. SDK has received
flushQueueSize
number of events already and stored them in its internal DB. 2. It has been
sleepCount
number of seconds since the last request made to the Rudderstack Server. The lower you set them, faster and greater the number of network requests are made by the SDK. So you should be very careful about setting both the above config values. Android docs: https://www.rudderstack.com/docs/sources/event-streams/sdks/rudderstack-android-sdk/#configuring-your-rudderstack-client iOS docs: https://www.rudderstack.com/docs/sources/event-streams/sdks/rudderstack-android-sdk/#configuring-your-rudderstack-client
f
Do we have some recommended values for GA4 destination? In order to avoid events failing in GA4?
I see that by default we have
withSleepcount
= 10 seconds and
withFlushQueueSize
= 30. Not sure which of these 2 parameters could lead to a 3-4 days delay, maybe the second one, if we suppose that the user does not generate 30 events and the SDK, waited to reach that amount before sending the batch to the server.
k
@few-activity-43960, even if the user doesn’t generate 30 events, and generated only 2 events, they would be sent when 10 seconds is elapsed since the last request sent to Rudderstack server. However the problem is that the user closed the app even before these 10 seconds duration was elapsed and opened back the app after 3-4 days
f
That means all failed (related to timestamp error) events are generated by users that closed the app after 10 seconds of usage?
k
no, it actually means that the app was closed in less than 10 seconds after the user generated those failed events
👍 1