Is it possible to target on URL params, like utm_campaign
added to the URL path?
I was sure that adding “URL path + contains + utm_campaign=vip-promo
” will work, like here:
But it doesn’t…
We can’t predict all params added to the URL and its order, so we can’t use is
for this. Contains
seems to be the best option, but it doesn’t work.
Maybe I should configure this targeting in a different way?
Otherwise, we will have to use Next.js Middleware and set UTM params as Custom Attributes, and target those attributes instead of targeting on the path.
Custom Attributes will give us additional behavior (persistence):
when user will visit the same page next time but without UTM params we can still serve the same page he saw with UTM params.
But sometimes we would like to target only when specific params are included in the URL, without this persistence.