[ 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: 1790790352354.jpg (278.87 KB, 1024x1024, img_1790790343216_wqp1ag3z.jpg)ImgOps Exif Google Yandex

e40db No.2256

was working with this client yesterday on their referral dashboard and everything looked totally fine until we realized half the clicks were showing up as direct instead of utm_source=uber. turns out their mobile webview was stripping the params before the page even loaded. i tried a quick fix using a tiny script to grab the url from the window location before the single page app could wipe it. ngl it felt like such a stupid mistake to miss during testing but it worked. use this if you're seeing weirdly high direct traffic on specific referral links.

const params = new URLSearchParams(window.location.search);if (params.has('utm_source')) {sessionStorage.setItem('referral_origin', params.get('utm_source'));}


i just check the sessionStorage value on the thank you page now to verify it's still there. saves so much headache when the data actually matches what the partners are sending. was literally staring at the screen for an hour thinking the server was broken.


[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 ]