Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

How can I overwrite the referrer with an empty string

Avatar

Avatar
Contributor
Level 3
andreis65119307
Level 3

Likes

13 likes

Total Posts

34 posts

Correct Reply

7 solutions
Top badges earned
Contributor
Shape 1
Give Back 5
Give Back 3
Give Back
View profile

Avatar
Contributor
Level 3
andreis65119307
Level 3

Likes

13 likes

Total Posts

34 posts

Correct Reply

7 solutions
Top badges earned
Contributor
Shape 1
Give Back 5
Give Back 3
Give Back
View profile
andreis65119307
Level 3

10-05-2021

Hi,

When a visitor types the URL of page A in the browser a redirect occurs to the page B.
On the B page the URL is b/?ref= and document.referrer=A

I set s.referrer = s.Util.getQueryParam("ref"); however since it's an empty string the value from document.referrer shows up.

Any advice?

Thank You!

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Seeker
Moderator
PratheepArunRaj
Moderator

Likes

309 likes

Total Posts

863 posts

Correct Reply

263 solutions
Top badges earned
Seeker
Bedrock
Engage 1
Affirm 250
Contributor
View profile

Avatar
Seeker
Moderator
PratheepArunRaj
Moderator

Likes

309 likes

Total Posts

863 posts

Correct Reply

263 solutions
Top badges earned
Seeker
Bedrock
Engage 1
Affirm 250
Contributor
View profile
PratheepArunRaj
Moderator

10-05-2021

Dear Andre,

That's the expected behavior if it is a server redirection. This is because AA referrer will not be set automatically on Page A but only on Page B where the document.referrer is Page A.

For page-level redirections, if the Adobe Analytics call was triggered before the redirection, the AA referrer value will be empty and thus you will see an empty value at the landing page (Here, Page B).

Thank You, Pratheep Arun Raj B | Xerago | Terryn Winter Analytics

Answers (2)

Answers (2)

Avatar

Avatar
Establish
Level 2
Charles_Thirupathi
Level 2

Likes

16 likes

Total Posts

36 posts

Correct Reply

7 solutions
Top badges earned
Establish
Validate 1
Shape 1
Give Back
Boost 5
View profile

Avatar
Establish
Level 2
Charles_Thirupathi
Level 2

Likes

16 likes

Total Posts

36 posts

Correct Reply

7 solutions
Top badges earned
Establish
Validate 1
Shape 1
Give Back
Boost 5
View profile
Charles_Thirupathi
Level 2

10-05-2021

@andreis65119307 If u set s.referrer = s.Util.getQueryParam("ref"); for the url b/?ref= final value of s.referrer will be empty (s.referrer = ' ');, Appmeasurement library will considered this as s.referrer is not defined and it will assign document.referrer as s.referrer value. For avoiding this you can assign the value of as s.referrer="Empty" or s.referrer="none"(string value to be assigned) if s.Util.getQueryParam("ref"); value is null/empty or ' '.

Avatar

Avatar
Contributor
Level 3
andreis65119307
Level 3

Likes

13 likes

Total Posts

34 posts

Correct Reply

7 solutions
Top badges earned
Contributor
Shape 1
Give Back 5
Give Back 3
Give Back
View profile

Avatar
Contributor
Level 3
andreis65119307
Level 3

Likes

13 likes

Total Posts

34 posts

Correct Reply

7 solutions
Top badges earned
Contributor
Shape 1
Give Back 5
Give Back 3
Give Back
View profile
andreis65119307
Level 3

24-05-2021

What if I use the adobe_mc_ref parameter
https://experienceleague.adobe.com/docs/target/using/integrate/a4t/a4t-faq/a4t-faq-redirect-offers.h...

In test it looks like it works, any experience with it for this scenario?