The curl with a Googlebot user agent check is a good habit, it catches this before any audit tool does. For the tracker itself, one option is to skip useSearchParams and read window.location.search inside the effect, since it only runs in the browser anyway. Then there is no Suspense requirement and nothing near the layout to get wrong.