Загрузка видео...

Не удалось загрузить видео

На главную

Your user global app’s metrics might be muddled by a gotcha! Check out this SQL dev challenge about a common tracking issue that affects users worldwide. Tell us where we went wrong and how to fix it in the comments below.

23,832 просмотров • 1 год назад •via X (Twitter)

Комментарии: 2

Фото профиля Google for Developers
Google for Developers1 год назад

Hint: Think about what happens when a user logs in at 11:59 PM in California while your server is in New York. Which day should that login count towards?

Фото профиля Ondřej Pařízek
Ondřej Pařízek1 год назад

Hi, I think there's a timezone issue here. The query doesn't reflect each user's local time, which can lead to incorrect daily counts. Ideally, we should store the user's timezone and convert both login_time and CURRENT_DATE to that timezone when aggregating login data.

Похожие видео