Cannot pick between a paid SaaS filter and my own PHP. This comparison helped: [url=https://doma.gives/guides/adspect-alternativa]Adspect alternative[/url], own domain, Worker, levels and the exact rule in the log.
For Yandex Direct the important parts are yclid, ymclid and RU geo: live clicks come from yandex.ru, the ad check arrives separately. Handling example: [url=https://doma.gives/guides/yandex-direct-yclid]Yandex Direct yclid[/url].
Macros get injected into the URL and HTML by the engine: clickid, geo, sub1-sub10, q.name. What is not a macro and how brackets survive: [url=https://doma.gives/guides/makrosy-kampanii]campaign macros[/url].