Regarding Capturing the Referrer in case of Redirects and Alias | Community
Skip to main content
Level 2
January 12, 2022
Solved

Regarding Capturing the Referrer in case of Redirects and Alias

  • January 12, 2022
  • 2 replies
  • 1052 views

Hi All,

 

We are planning to capture redirect data in Adobe analytics when there is traffic going to vanity URLs that redirects to our marketing site. For context, this is required to provide clarity to sources of traffic that currently appear as “Typed/Bookmarked”.

 

Below is the reference guide followed.

https://experienceleague.adobe.com/docs/analytics/technotes/redirects.html%3Flang%3Des

 

I have tried updating the rewrite rule used for ACS Redirect Mapper feature. But this is not helpful. 

 

Basically I want to preserve HTTP Referrer when using a 301 Redirect.

 

Please share any thoughts or pointers here.

 

# Add authorable RewriteMap
RewriteMap usredirects "dbm:/etc/httpd/conf.d/redirectmaps/us.map"
RewriteCond ${usredirects:$1} !=""
RewriteRule ^(.*)$ ${usredirects:$1|/}?originref=%{HTTP_REFERER} [L,R=301]

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Sudheer_Sundalam

@nagarjunkool ,

In context of 301 redirects, it's the client that decides whether to send the referrer information or not and it's not reliable. Some clients may omit to send referrer information and send the request as completely new request altogether.

Normally, If the referrer information is present, it is sent to the server as is.

 

This article may be helpful: https://serverfault.com/questions/977403/preserve-http-referer-when-using-a-301-redirect

2 replies

kautuk_sahni
Community Manager
Community Manager
December 5, 2023

@aanchal-sikka @rezwanur @saravanan_dharmaraj @sudheer_sundalam @lukasz-m @preetpal_bindra Can you please review this unanswered question? Appreciate your thoughts on this.

Kautuk Sahni
Sudheer_Sundalam
Community Advisor
Sudheer_SundalamCommunity AdvisorAccepted solution
Community Advisor
December 5, 2023

@nagarjunkool ,

In context of 301 redirects, it's the client that decides whether to send the referrer information or not and it's not reliable. Some clients may omit to send referrer information and send the request as completely new request altogether.

Normally, If the referrer information is present, it is sent to the server as is.

 

This article may be helpful: https://serverfault.com/questions/977403/preserve-http-referer-when-using-a-301-redirect