I have a different Google Analytics 4 measurement ID for each domain/subdomain, but apparently Zaraz currently doesn’t have an option to manage scripts based on the URL. I can only add one, which is fired everywhere.
I found this {{ system.page.url.pathname }} on the Cloudflare Docs, but didn’t help because the measurement ID is different on each domain/subdomain and not URL path.
Hope I explained myself XD
So, how can I use different GA 4 measurement ID in Zaraz?
You could add multiple conditions to any trigger with an AND operator between them, and do another match rule this time on {{ system.page.url.pathname }} and select not matches regex as your operation with a match string such as: