Expand my Community achievements bar.

Join us on September 25th for a must-attend webinar featuring Adobe Experience Maker winner Anish Raul. Discover how leading enterprises are adopting AI into their workflows securely, responsibly, and at scale.

Mark Solution

This conversation has been locked due to inactivity. Please create a new post.

SOLVED

How can we set the s.referrer in DTM?

Avatar

Level 2

For vanity urls, we have the redirect landing our our site with a url parameter of "refd" that has the referring domain in it.

For instance, if our real site is "http://mysite.com" and we have a vanity domain of "http://myfancydomain.com" that redirects to http://mysite.com?redf=myfancydomain.com we need to set the s.referrer to "myfancydomain.com". 

Custom code?

1 Accepted Solution

Avatar

Correct answer by
Employee

Hi,

In case you want to capture "myfancydomain.com" from the URL http://mysite.com?redf=myfancydomain.com, you can use Util.getQueryParam() method to capture refd query string value in s.referrer variable.

Something like this:

s.referrer= s.Util.getQueryParam("redf");

View solution in original post

3 Replies

Avatar

Correct answer by
Employee

Hi,

In case you want to capture "myfancydomain.com" from the URL http://mysite.com?redf=myfancydomain.com, you can use Util.getQueryParam() method to capture refd query string value in s.referrer variable.

Something like this:

s.referrer= s.Util.getQueryParam("redf");

Avatar

Level 1

how do we verify the Referrer Value? it is not displaying in adobe anlaytics debugger like other eVars and props

Avatar

Level 2

Thank you.