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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Vanity URLs redirect analytics

Avatar

Level 4

I do not know if this is possible, but if a vanity URL is set on a page, and the redirect option is enabled:

mysite.com/vanity -> 301 -> mysite.com/deep/link/to/page.html

How can I track, for analytics purposes, in this page, that the original request was made for the vanity URL ?

Is there something in the HTTP request that is supposed to express that? Or once the redirect happens, I lost all trace that the user used the vanity?

Thanks a lot.

JS.

1 Reply

Avatar

Level 4

On a sidenote: I just noticed vanity URLs aren't using 301, but 302 instead ...