set UTM info
This commit is contained in:
parent
1ca26e604e
commit
65ff6737da
@ -6,6 +6,9 @@ async function redirect_secondary_domains(context) {
|
||||
var secondary_domains = ['test.ewp.fyi', 'evan.pratten.ca', 'evan.warren.pratten.ca'];
|
||||
if (secondary_domains.includes(url.hostname)) {
|
||||
url.hostname = 'ewpratten.com';
|
||||
url.searchParams.set("utm_source", url.hostname);
|
||||
url.searchParams.set("utm_medium", "redirect");
|
||||
url.searchParams.set("utm_campaign", "secondary_domains");
|
||||
return Response.redirect(url, 302);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user