[ Home / About / Contact / WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]

/case/ - Case Studies

Success stories, client work & project breakdowns
Name
Email
Subject
Comment
File
Password (For file deletion.)

File: 1794190657824.jpg (149.12 KB, 900x1046, img_1794190649664_xl8f3fdn.jpg)ImgOps Exif Google Yandex

bc573 No.2457

I've been looking at this client's data and something isn't adding up with their session length metrics. I used this quick SQL snippet to check if the gaps between events were actually consistent across their subdomains. It helps catch when a user is being treated like two different people because of a tracking mismatch.

SELECTuser_pseudo_id,timestamp_diff(MAX(event_timestamp), MIN(event_timestamp), SECOND) AS session_durationFROM [code]project.dataset.events_*

GROUP BY 1
[/code]

I'm not sure if the duration looks low because of a bug or just short sessions from bot traffic. We really need to see this run for at least two full weeks before we call it a trend.

2910e No.2486

File: 1794647115735.jpg (157.95 KB, 768x1255, img_1794647098795_m7yz3fmg.jpg)ImgOps Exif Google Yandex

>>2457
That query is going to give you weird results because it's grouping by user, not session. You'll end up with huge durations that include every single visit that person ever made since the data started. I thought I had this same issue last month until I realized I needed to group by both user and session id. How do you even filter out the bots from that mess?

2910e No.2487

>>2457
>>2486 just filter out any hits with zero page_view events to kill some of those bots.



[Return] [Go to top] Catalog [Post a Reply]
Delete Post [ ]
[ Home / About / Contact / WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]