How can we set the s.referrer in DTM?

Avatar

Avatar
Validate 1
Level 1
valeriea6918303
Level 1

Like

1 like

Total Posts

2 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 1
valeriea6918303
Level 1

Like

1 like

Total Posts

2 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
valeriea6918303
Level 1

09-10-2018

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?

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Boost 5
Employee
atuls41837987
Employee

Likes

8 likes

Total Posts

19 posts

Correct reply

14 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Affirm 5
Affirm 3
View profile

Avatar
Boost 5
Employee
atuls41837987
Employee

Likes

8 likes

Total Posts

19 posts

Correct reply

14 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Affirm 5
Affirm 3
View profile
atuls41837987
Employee

09-10-2018

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");

Answers (1)

Answers (1)

Avatar

Avatar
Validate 1
Level 1
valeriea6918303
Level 1

Like

1 like

Total Posts

2 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 1
valeriea6918303
Level 1

Like

1 like

Total Posts

2 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
valeriea6918303
Level 1

10-10-2018

Thank you.