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 do I set s.referrer as ""?

Avatar

Avatar
Validate 1
Level 1
Trystan_Colwyn-
Level 1

Likes

0 likes

Total Posts

6 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
Trystan_Colwyn-
Level 1

Likes

0 likes

Total Posts

6 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
Trystan_Colwyn-
Level 1

12-01-2021

For cookie compliance, we have to refresh the landing page if a user opts in too Analytics cookies. This causes inflated session refresh visits because document.location is set to our domain. 

 

How do I set s.referrer as "" / null so Adobe believes the marketing channel is direct rather than session refresh?

Analytics launch referrer

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Springboard
MVP
yuhuisg
MVP

Likes

154 likes

Total Posts

489 posts

Correct Reply

91 solutions
Top badges earned
Springboard
Bedrock
Validate 1
Establish
Contributor
View profile

Avatar
Springboard
MVP
yuhuisg
MVP

Likes

154 likes

Total Posts

489 posts

Correct Reply

91 solutions
Top badges earned
Springboard
Bedrock
Validate 1
Establish
Contributor
View profile
yuhuisg
MVP

13-01-2021

As described here: https://experienceleague.adobe.com/docs/analytics/implementation/vars/page-vars/referrer.html?lang=e... you can simply use s.referrer = "".

However, you'll need to add your own logic so that this is done only after when the page was loaded immediately after the user has given consent.

Answers (0)